예제 #1
0
        static void Main(string[] args)
        {
            SolarSystemPlanet ssp = new SolarSystemPlanet(86000, "Земля");
            Earth             abc = new Earth(3, true);
            TheSun            sss = new TheSun(5505, true);

            Console.Write("1)");
            ssp.MoveInOrbit();
            Console.Write("2)");
            ssp.izmenenyeImeny("Марс");
            Console.Write("3)");
            ssp.izmenenyeDiametra(53666);

            Console.Write("4)");
            abc.MakeNewIceAge(true);
            Console.Write("5)");
            abc.GrowATrees();
            Console.Write("6)");
            abc.FloodVillageOnTheShore();

            Console.Write("7)");
            sss.Blow();
            Console.Write("8)");
            sss.IncreaseTemprature(1200);
            Console.Write("9)");
            sss.EmitUltravioletLight();
        }
예제 #2
0
 public void UpdateRendered(SolarSystemPlanet p)
 {
     if (Enum.TryParse(p.gameObject.name, out PlanetName planet))
     {
         p.SetCollected(SolarSystemPlanetManager.RenderedPlanets[planet]);
     }
 }