예제 #1
0
 private void Wander()
 {
     if (ai.CanSeeTarget(targetMask))
     {
         target   = ai.GetCurrentTarget();
         curState = EnemyStates.Engaging;
     }
     else
     {
         movement.MoveTowards(spawnPoint);
     }
 }