public void removeCity(CityV2 city) { if (isPlayer1) { if (citiesPlayer1.Contains(city)) { citiesPlayer1.Remove(city); setPoint(-1); } else { Debug.Log("Player : Try to remove a City not here"); } } else { if (citiesPlayer2.Contains(city)) { citiesPlayer2.Remove(city); setPoint(-1); } else { Debug.Log("Player : Try to remove a City not here"); } } }
public void addCity(CityV2 city) { if (isPlayer1) { if (!citiesPlayer1.Contains(city)) { citiesPlayer1.Add(city); setPoint(1); textScoreP1.text = pointsP1.ToString(); } else { Debug.Log("Player : Try to add a City already add"); } } else { if (!citiesPlayer2.Contains(city)) { citiesPlayer2.Add(city); setPoint(1); } else { Debug.Log("Player : Try to add a City already add"); } } }