// 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()); } }
// Update is called once per frame void Update() { for (int i = 0; i < textPieces.Length; i++) { textPieces[i].text = (dragon.GetFruit() + dragon.GetMeat()).ToString(); } }