| | |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using Cysharp.Threading.Tasks; |
| | |
| | | { |
| | | hawkerRect.localPosition = pos2.localPosition; |
| | | } |
| | | hawkerModel.PlayAnimation("idle", true); |
| | | // hawkerModel.PlayAnimation("zoulu", true); |
| | | } |
| | | |
| | | //isShow true走出来,false走出去 |
| | |
| | | FuncNPCManager.Instance.isHawkerShowNow = isShow; |
| | | hawkerModel.PlayAnimation("zoulu", true); |
| | | FuncNPCManager.Instance.isHawkerStandBy = false; |
| | | hawkerModel.transform.localScale = new Vector3(isShow ? hawkerModel.transform.localScale.x : -hawkerModel.transform.localScale.x, hawkerModel.transform.localScale.y, hawkerModel.transform.localScale.z); |
| | | hawkerModel.transform.localScale = new Vector3(isShow ? Math.Abs(hawkerModel.transform.localScale.x) : -Math.Abs(hawkerModel.transform.localScale.x), hawkerModel.transform.localScale.y, hawkerModel.transform.localScale.z); |
| | | hawkerRect.DOLocalMove(isShow ? pos1.localPosition : pos2.localPosition, 1f).onComplete = () => |
| | | { |
| | | hawkerModel.PlayAnimation("idle", true); |