Exemple #1
0
 public void FollowPath()
 {
     string json = Json.Serialize(GetPathDict ());
     AIPath p = new AIPath(json);
     p.SetContext(center.GetComponent<RectTransform>().anchoredPosition,0f,onscreenRadius);
     ai.StartFollowingPath(p);
 }
Exemple #2
0
    public void FollowPath()
    {
        string json = Json.Serialize(GetPathDict());
        AIPath p    = new AIPath(json);

        p.SetContext(center.GetComponent <RectTransform>().anchoredPosition, 0f, onscreenRadius);
        ai.StartFollowingPath(p);
    }