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 bool IsPlanetSelected(Planet planet) { return(SelectedPlanets.Contains(planet)); }