public void RequestSpawnPath(Vector2 destination)
 {
     PathRequested?.Invoke(new PathRequest(this, _spawnPathValues, () => (Vector2?)destination, OnPathComplete));
 }
Example #2
0
 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));
 }
Example #4
0
 public IEnumerator Attack()
 {
     PathRequested?.Invoke(new PathRequest(this, _pathValues, FindAttackDestination, OnPathFinished));
     yield break;
 }