void Awake() { requestManager = GetComponent <PathRequestmanager>(); grid = GetComponent <Grid>(); }
void Start() { PathRequestmanager.RequestPath(transform.position, target.position, OnPathDiscover); }
public void StartPathing(Vector3 target) { PathRequestmanager.RequestPath(transform.position, target, OnPathDiscover); }
void Awake() { instance = this; pathFinding = GetComponent <PathFinding>(); }