Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (player.GetMeat() == meatToWin || player.GetFruit() == fruitToWin)
     {
         Debug.Log("You've Won Meat " + player.GetMeat() + " Fruit " + player.GetFruit());
     }
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     for (int i = 0; i < textPieces.Length; i++)
     {
         textPieces[i].text = (dragon.GetFruit() + dragon.GetMeat()).ToString();
     }
 }