GetCurrentTarget() public method

public GetCurrentTarget ( ) : Transform
return Transform
Beispiel #1
0
 private void Wander()
 {
     if (ai.CanSeeTarget(targetMask))
     {
         target   = ai.GetCurrentTarget();
         curState = EnemyStates.Engaging;
     }
     else
     {
         movement.MoveTowards(spawnPoint);
     }
 }