Esempio n. 1
0
 /*
  * Function: MovetoFlag
  * ----------------------------
  *   A method for moving to the enemy flag, if it is in sight
  *
  */
 public void MovetoFlag()
 {
     if (!EnemyTeamFlagInSight())
     {
         return;
     }
     LookAt(EnemyFlagInSight.GetLocation());
     MoveTowards(EnemyFlagInSight.GetLocation());
 }
Esempio n. 2
0
 public void MovetoFlag()
 {
     transform.LookAt(EnemyFlagInSight.GetLocation());
     MoveTowards(EnemyFlagInSight.GetLocation());
 }