public void SetPosition(Vector3 position, Action arrive = null) { IsFind = true; targetPosType = TargetPosType.Position; this.position = position; this.OnArrive = arrive; }
public void SetTarget(Transform target, Action arrive = null) { IsFind = true; targetPosType = TargetPosType.Transform; this.target = target; this.OnArrive = arrive; }