public void RemovePlanet(Planet planet) { if (planet != null) { if (SelectedPlanets.Contains(planet)) { SelectedPlanets.Remove(planet); } if (planet == Camera.FocusPlanet) { Camera.ClearFocus(); } Planets.Remove(planet); planet.Dispose(); } }
public void UnselectPlanet(Planet planet) { SelectedPlanets.Remove(planet); }