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

            todoJobs.Add(newJob);
        }