public void CheckIfCanFollowPath(Vector3 targetPosition) { CheckingPath = true; Debug.Log("Requesting a path"); PathRequestManagerNew.RequestPath(transform.position, targetPosition, OnPathFound); }
GridNew grid; //Change if using 3D void Awake() { requestManager = GetComponent <PathRequestManagerNew>(); grid = GetComponent <GridNew>(); }
void Awake() { instance = this; pathfinding = GetComponent <PathfindingNew>(); }