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