public void RefreshPath() { Debug.Log("RefreshPath"); targetIndex = 0; if (path != null) { Array.Clear(path, 0, path.Length); } PathRequestMgr.RequestPath(transform.position, currnetTarget.position, OnPathFound); }
void Start() { PathRequestMgr.RequestPath(transform.position, target.position, OnPathFound); }
void Awake() { instance = this; pathfinding = GetComponent <PathFindingTest>(); }
private void Awake() { requestMgr = GetComponent <PathRequestMgr>(); grid = GetComponent <Grid>(); }
public virtual void Start() { actor = GetComponent <Actor>(); PathRequestMgr.RequestPath(transform.position, finalTarget.position, OnPathFound); }