public void RequestSpawnPath(Vector2 destination) { PathRequested?.Invoke(new PathRequest(this, _spawnPathValues, () => (Vector2?)destination, OnPathComplete)); }
public void PerformFear() { _performingFear = true; PathRequested?.Invoke(new PathRequest(this, _fearPathValues, FindBestTargetPosition, OnPathComplete)); }
public void RequestRingPath() { PathRequested?.Invoke(new PathRequest(this, _ringPathValues, _currentWayPoint, FindPath, OnPathComplete)); }
public IEnumerator Attack() { PathRequested?.Invoke(new PathRequest(this, _pathValues, FindAttackDestination, OnPathFinished)); yield break; }