Ejemplo n.º 1
0
 public void CheckIfCanFollowPath(Vector3 targetPosition)
 {
     CheckingPath = true;
     Debug.Log("Requesting a path");
     PathRequestManagerNew.RequestPath(transform.position, targetPosition, OnPathFound);
 }
Ejemplo n.º 2
0
    GridNew grid;     //Change if using 3D

    void Awake()
    {
        requestManager = GetComponent <PathRequestManagerNew>();
        grid           = GetComponent <GridNew>();
    }
Ejemplo n.º 3
0
 void Awake()
 {
     instance    = this;
     pathfinding = GetComponent <PathfindingNew>();
 }