Esempio n. 1
0
 private void HandleUnitRemoved(UnitRemovedEvent e)
 {
     if (CurrentMode.Equals(GameMode.PlayerOne) || CurrentMode.Equals(GameMode.PlayerOneSetup))
     {
         PlayerOne.Pieces.Remove(e.Unit);
     }
     else if (CurrentMode.Equals(GameMode.PlayerTwo) || CurrentMode.Equals(GameMode.PlayerTwoSetup))
     {
         PlayerTwo.Pieces.Remove(e.Unit);
     }
 }
Esempio n. 2
0
 private void HandleUnitRemoved(UnitRemovedEvent e)
 {
     if (e.Unit.Rank.Equals(rank))
     {
         int amount = UnitManager.GetPlacementAmountForUnit(rank);
         if (amount > 0)
         {
             remaining.text = amount.ToString();
             image.color    = Color.white;
         }
     }
 }
Esempio n. 3
0
 private void HandleUnitRemoved(UnitRemovedEvent e)
 {
     if (e.Unit.Rank.Equals(rank))
     {
         int amount = UnitManager.GetPlacementAmountForUnit(rank);
         if (amount > 0)
         {
             remaining.text = amount.ToString();
             image.color = Color.white;
         }
     }
 }
Esempio n. 4
0
 private void HandleUnitRemoved(UnitRemovedEvent e)
 {
     if (CurrentMode.Equals(GameMode.PlayerOne) || CurrentMode.Equals(GameMode.PlayerOneSetup))
     {
         PlayerOne.Pieces.Remove(e.Unit);
     }
     else if (CurrentMode.Equals(GameMode.PlayerTwo) || CurrentMode.Equals(GameMode.PlayerTwoSetup))
     {
         PlayerTwo.Pieces.Remove(e.Unit);
     }
 }