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

            todoJobs.Add(newJob);
        }