Here’s a LINQ statement that performs the FindPath functionality:
path = GameObject.FindGameObjectWithTag(“Path”).transform.Cast<Transform>().Select(t => t.GetComponent<Waypoint>()).ToList();
Here’s a LINQ statement that performs the FindPath functionality:
path = GameObject.FindGameObjectWithTag(“Path”).transform.Cast<Transform>().Select(t => t.GetComponent<Waypoint>()).ToList();