コード例 #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());
 }
コード例 #2
0
 public void MovetoFlag()
 {
     transform.LookAt(EnemyFlagInSight.GetLocation());
     MoveTowards(EnemyFlagInSight.GetLocation());
 }