void Start() { pathFinder = new PathFinder2D(15, 15); territories = new Territory[transform.childCount]; for (int i = 0; i < transform.childCount; i++) { territories[i] = transform.GetChild(i).GetComponent <Territory>(); } }
public IEnumerable <Island> GetConnectedNodes(PathFinder2D <Island> finder, Island current) { return(current.ConnectedIslands); }