public void RequestPathfind(Node start, Node target, PathfindingJobComplete completeCallback) { Pathfinder newJob = new Pathfinder(start, target, completeCallback); todoJobs.Add(newJob); }
private void Awake() { pathfinder = FindObjectOfType <Pathfinder>(); cam = Camera.main; }
void Awake() { _pathfinder = FindObjectOfType <Pathfinder>(); }
public static void SetMap(Map map) { map.LoadFromSerialized(); CurrentMap = map; CurrentMap.Initialize(); pathfinder = new Pathfinder(map); }