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); } }
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; } } }
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; } } }
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); } }