Пример #1
0
static void Main(string[] args)
{
cows cows1 = new cows("senior Elvis(the cows leader)", "moo", " fresh grass", "meat:");
cows cows2 = new cows(" Mrs Molly","moo", "chick fillet", " milk");
cows cows3 = new cows("Bossy","moo", "Maize" ,"cheese");
cows cows4 = new cows("Lovabull","moo","cabbage","leather");
cows cows5 = new cows("Raven","moo", "spinach", "fertilizer");
Console.WriteLine("Welcome to YAMBA's Farm,here are my special cows");
Console.WriteLine(cows1.GetName(), cows1.eatIT(),cows1.aProduce());
Console.WriteLine(cows2.GetName(), cows2.eatIT(),cows2.aProduce());
Console.WriteLine(cows3.GetName(), cows3.eatIT(),cows3.aProduce());
Console.WriteLine(cows4.GetName(), cows4.eatIT(), cows4.aProduce());
Console.WriteLine(cows5.GetName(), cows5.eatIT(), cows5.aProduce());
Console.WriteLine("*******************************************************************************");
Console.WriteLine("We have a variaty of animals like these ones: ");
chicken chicken = new chicken("Jordan", "cluck");
Console.WriteLine(chicken.speakUp());
Rabbit Rabbit = new Rabbit("Gerald", "squeak");
Console.WriteLine(Rabbit.speakUp());
Lamb lamb = new Lamb("Travis", "bleat");
Console.WriteLine(lamb.speakUp());
Turkey Turkey = new Turkey("Siguel", "globble");
Console.WriteLine(Turkey.speakUp());
Parrot Parrot = new Parrot("Brice", "squawk");
Console.WriteLine(Parrot.speakUp());
Console.ReadLine();

}
Пример #2
0
    public void StartNewChicken()
    {
        if (currentRun.chickensleft < 1)
        {
            UI.SetForFinal();
            return;
        }

        currentRun.chickensleft--;

        tries++;

        if (currentChicken != null)
        {
            Destroy(currentChicken.gameObject);
        }



        Grill.GoToGrill();
        status = GameStates.cooking;
        UI.SetForCooking();

        //restart the grill
        sliderGrill.value = 10f;

        GameObject foo = (GameObject)Instantiate(chickenPrefab);

        currentChicken = foo.GetComponent <chicken>();
    }
Пример #3
0
	// Use this for initialization
	void Start () {
        chickenScript = GetComponent<chicken>();
        
	}
Пример #4
0
 void findCurrentChicken()
 {
     ch = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager>().currentChicken;
 }
Пример #5
0
    public void StartNewChicken() {


        if (currentRun.chickensleft < 1)
        {
            UI.SetForFinal();
            return;
        
        }
        
        currentRun.chickensleft--;
        
        tries++;

        if (currentChicken != null) {
            Destroy(currentChicken.gameObject);            
        }      



        Grill.GoToGrill();
        status = GameStates.cooking;
        UI.SetForCooking();

        //restart the grill
        sliderGrill.value = 10f;

        GameObject foo = (GameObject)Instantiate(chickenPrefab);
        currentChicken = foo.GetComponent<chicken>();
    
    
    }
Пример #6
0
    void findCurrentChicken() {

        ch = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameManager>().currentChicken;
    }
Пример #7
0
 // Use this for initialization
 void Start()
 {
     chickenScript = GetComponent <chicken>();
 }
Пример #8
0
 public void Meats(lamb, goat, chicken, beef)
 {
     string[] combo = Plate;
 }