private void Awake() { AI = GetComponentInParent <Pathfiding>(); }
//bool isProcessingPath; private void Awake() { instance = this; pathfinding = GetComponent <Pathfiding>(); }