public void FollowPath(AIPath path) { if(rt == null){ rt = GetComponent<RectTransform>(); } Vector2 target = path.PathFollowingTarget(rt.anchoredPosition,lookAhead); pftarget = target; Seek (target); }
public void FollowPath(AIPath path) { if (rt == null) { rt = GetComponent <RectTransform>(); } Vector2 target = path.PathFollowingTarget(rt.anchoredPosition, lookAhead); pftarget = target; Seek(target); }