示例#1
0
 private void HandleUnitPlaced(UnitPlacedEvent e)
 {
     //Check if the unit still can be placed. If not, we need to clear the selection.
     if (UnitManager.GetPlacementAmountForUnit(placementRank) <= 0)
     {
         placementRank = UnitRank.Unknown;
     }
 }
示例#2
0
 private void HandleUnitPlaced(UnitPlacedEvent e)
 {
     if (CurrentMode.Equals(GameMode.PlayerOne) || CurrentMode.Equals(GameMode.PlayerOneSetup))
     {
         PlayerOne.Pieces.Add(e.Unit);
     }
     else if (CurrentMode.Equals(GameMode.PlayerTwo) || CurrentMode.Equals(GameMode.PlayerTwoSetup))
     {
         PlayerTwo.Pieces.Add(e.Unit);
     }
 }
示例#3
0
 private void HandleUnitPlaced(UnitPlacedEvent e)
 {
     if (e.Unit.Rank.Equals(rank))
     {
         int amount = UnitManager.GetPlacementAmountForUnit(rank);
         remaining.text = amount.ToString();
         if (amount <= 0)
         {
             image.color = DISABLED_COLOR;
             background.color = NORMAL_COLOR;
             selected = false;
         }
     }
 }
示例#4
0
 private void HandleUnitPlaced(UnitPlacedEvent e)
 {
     if (e.Unit.Rank.Equals(rank))
     {
         int amount = UnitManager.GetPlacementAmountForUnit(rank);
         remaining.text = amount.ToString();
         if (amount <= 0)
         {
             image.color      = DISABLED_COLOR;
             background.color = NORMAL_COLOR;
             selected         = false;
         }
     }
 }
示例#5
0
 private void HandleUnitPlaced(UnitPlacedEvent e)
 {
     //Check if the unit still can be placed. If not, we need to clear the selection.
     if (UnitManager.GetPlacementAmountForUnit(placementRank) <= 0)
     {
         placementRank = UnitRank.Unknown;
     }
 }
示例#6
0
 private void HandleUnitPlaced(UnitPlacedEvent e)
 {
     if (CurrentMode.Equals(GameMode.PlayerOne) || CurrentMode.Equals(GameMode.PlayerOneSetup))
     {
         PlayerOne.Pieces.Add(e.Unit);
     }
     else if (CurrentMode.Equals(GameMode.PlayerTwo) || CurrentMode.Equals(GameMode.PlayerTwoSetup))
     {
         PlayerTwo.Pieces.Add(e.Unit);
     }
 }