Пример #1
0
        public static void Main()
        {
            //Create and run the African animal world.
            ContinentFactory africa = new AfricanFactory();
            AnimalKingdom    world  = new AnimalKingdom(africa);

            world.RunFoodChain();

            //Create and run the American anmal world.
            ContinentFactory america = new AmericaFactory();

            world = new AnimalKingdom(america);
            world.RunFoodChain();

            //wait for user input
            Console.ReadKey();
        }
Пример #2
0
 public void OnClickAnimalKingdom()
 {
     Home.SetActive(false);
     AnimalKingdom.SetActive(true);
 }
Пример #3
0
 public void OnClosseButtonClicked()
 {
     Home.SetActive(true);
     AnimalKingdom.SetActive(false);
     Cities.SetActive(false);
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     Home.SetActive(true);
     AnimalKingdom.SetActive(false);
     Cities.SetActive(false);
 }