Ejemplo n.º 1
0
 // default - move all attackers over
 public void DefaultTransfer(GameObject fromCountry, GameObject toCountry)
 {
     // moves all the troops over except from 1
     for (int i = 0; countryManagement.GetArmySize(fromCountry.name) > 1; i++)
     {
         armyMovement.MoveSoldier(fromCountry, toCountry);
     }
 }
Ejemplo n.º 2
0
 void MoveAfterTime()
 {
     fromCountrySize = countryManagement.GetArmySize(fromCountry.name);
     if (fromCountrySize > 1)
     {
         armyMovement.MoveSoldier(fromCountry, toCountry);
         Invoke("MoveAfterTime", movementDelay);
     }
     // ----Ends player turn after movement----
     else
     {
         phases.EndPhase();
     }
 }