Esempio n. 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();
            }
        }
Esempio n. 2
0
 public void UnselectPlanet(Planet planet)
 {
     SelectedPlanets.Remove(planet);
 }