void Awake() { instance = this; pathfinding = GetComponent <PathfindingBFS>(); }
void Start() { PathFindingRequestBFS.RequestPath(transform.position, target.position, OnPathFound); }
void Awake() { requestManager = GetComponent <PathFindingRequestBFS>(); grid = GetComponent <Grid> (); }