private void Start() { henk = Instantiate(lion, transform).GetComponent <Lion>(); henk.name = "henk"; elsa = Instantiate(hippo, transform).GetComponent <Hippo>(); elsa.name = "elsa"; dora = Instantiate(pig, transform).GetComponent <Pig>(); dora.name = "dora"; wally = Instantiate(tiger, transform).GetComponent <Tiger>(); wally.name = "wally"; marty = Instantiate(zebra, transform).GetComponent <Zebra>(); marty.name = "marty"; steven = Instantiate(captainAmerica, transform).GetComponent <CaptainAmerica>(); steven.name = "steven"; logan = Instantiate(wolverine, transform).GetComponent <Wolverine>(); logan.name = "logan"; }
/// <summary> /// Instantiates every animal and adds them to the scene. /// </summary> private void Start() { Lion henk = Instantiate(lion, transform).GetComponent <Lion>(); Hippo elsa = Instantiate(hippo, transform).GetComponent <Hippo>(); Pig dora = Instantiate(pig, transform).GetComponent <Pig>(); Tiger wally = Instantiate(tiger, transform).GetComponent <Tiger>(); Zebra marty = Instantiate(zebra, transform).GetComponent <Zebra>(); Monkey ceaser = Instantiate(monkey, transform).GetComponent <Monkey>(); Toucan duif = Instantiate(toucan, transform).GetComponent <Toucan>(); animals.Add(henk); animals.Add(elsa); animals.Add(dora); animals.Add(wally); animals.Add(marty); animals.Add(ceaser); animals.Add(duif); }
private void Start() { Lion henk = Instantiate(lion, transform).GetComponent <Lion>(); henk.Name = "henk"; Hippo elsa = Instantiate(hippo, transform).GetComponent <Hippo>(); elsa.Name = "elsa"; Pig dora = Instantiate(pig, transform).GetComponent <Pig>(); dora.Name = "dora"; Tiger wally = Instantiate(tiger, transform).GetComponent <Tiger>(); wally.Name = "wally"; Zebra marty = Instantiate(zebra, transform).GetComponent <Zebra>(); marty.Name = "marty"; Squirrel stamper = Instantiate(rabbit, transform).GetComponent <Squirrel>(); stamper.Name = "stamper"; Wolf kiba = Instantiate(wolf, transform).GetComponent <Wolf>(); kiba.Name = "kiba"; }
private void Start() { Lion henk = Instantiate(lion, transform).GetComponent <Lion>(); henk.name = "henk"; Hippo elsa = Instantiate(hippo, transform).GetComponent <Hippo>(); elsa.name = "elsa"; Pig dora = Instantiate(pig, transform).GetComponent <Pig>(); dora.name = "dora"; Tiger wally = Instantiate(tiger, transform).GetComponent <Tiger>(); wally.name = "wally"; Zebra marty = Instantiate(zebra, transform).GetComponent <Zebra>(); marty.name = "marty"; Tyler1 tyler1 = Instantiate(fourHead, transform).GetComponent <Tyler1>(); tyler1.name = "tyler1"; Mike mike = Instantiate(bruh, transform).GetComponent <Mike>(); mike.name = "mike"; }
static void Main(string[] args) { Console.WriteLine("Would you like to meet our animals in the zoo? Type yes or no"); string answer = Console.ReadLine(); if (answer == "yes") { Pig Luna = new Pig("Luna", 27, 160, "pink"); Luna.Greeting(); Luna.Eat(); Luna.Looks(); Luna.Product(); Console.WriteLine("\n Would you like to meet the next animal in the zoo? Type yes or no"); answer = Console.ReadLine(); if (answer == "yes") { Cow Ally = new Cow("Ally", 5, 300, "pink with black spots"); Ally.Greeting(); Ally.Eat(); Ally.Looks(); Ally.Product(); Console.WriteLine("\n Would you like to meet the next animal in the zoo? Type yes or no"); answer = Console.ReadLine(); if (answer == "yes") { Rabbit Ranciel = new Rabbit("Ranciel", 6, 45, "grey"); Ranciel.Greeting(); Ranciel.Eat(); Ranciel.Looks(); Ranciel.Product(); Console.WriteLine("\n Would you like to meet the next animal in the zoo? Type yes or no"); answer = Console.ReadLine(); if (answer == "yes") { Chicken Ellodie = new Chicken("Ellodie", 2, 10, "black"); Ellodie.Greeting(); Ellodie.Eat(); Ellodie.Looks(); Ellodie.Product(); Console.WriteLine("\n That is all the animals we have available today! Thank you for visiting our zoo!"); Environment.Exit(0); } else { Console.WriteLine("Thank you for visting"); Environment.Exit(0); } } else { Console.WriteLine("Thank you for visting"); Environment.Exit(0); } } else { Console.WriteLine("Thank you for visting"); Environment.Exit(0); } } else { Console.WriteLine("Thank you for visting"); Environment.Exit(0); } }