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