Example #1
0
        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();
            }
        }
Example #2
0
 public bool IsPlanetSelected(Planet planet)
 {
     return(SelectedPlanets.Contains(planet));
 }