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

        pftarget = target;
        Seek(target);
    }