void Awake() { if (_instance != null) { Destroy(gameObject); } else { _instance = this; } grid = GetComponent <Grid>(); requestManager = GetComponent <PathRequestManager>(); }
void Awake() { instance = this; pathFinding = GetComponent <PathFinding>(); pathFindingV2 = GetComponent <PathFindingV2>(); }