public void Greedy(int startX, int startY, int endX, int endY) { ClearPath(); Greedy g = GameObject.Instantiate(greedy, Vector3.zero, Quaternion.identity).GetComponent <Greedy>(); g.StartGreed(startX, startY, endX, endY); }
public void Greedy(int startX, int startY, int endX, int endY) { ClearPath(); Greedy g = GameObject.Instantiate(greedy, Vector3.zero, Quaternion.identity).GetComponent <Greedy>(); g.StartGreed(startX, startY, endX, endY); }