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

            todoJobs.Add(newJob);
        }