public void ReturnPlanet(Planet planet) { if (planets.Remove(planet)) { if (listener != null) { listener.OnPlanetReturned(planet); } universeFactory.ReturnPlanet(planet); } }
public void ReturnPlanet(Planet planet) { if (planets.Remove(planet)) { if (listener != null) { listener.OnPlanetReturned(planet); } universeFactory.ReturnPlanet(planet); } }