Ejemplo n.º 1
0
 public void OnClickCollect()
 {
     if (lastFluff > 0)
     {
         lastFluff            = WareHouse.GetComponent <WareHouse>().PutFluff(lastFluff);
         FluffInCageText.text = lastFluff.ToString() + "/" + cageFluffCapacity;
     }
 }
Ejemplo n.º 2
0
 public void OnAddClick()
 {
     if (lastFood < cageFoodCapacity)
     {
         if (WareHouse.GetComponent <WareHouse>().GetHay())
         {
             FoodInCageText.text = (++lastFood).ToString() + "/" + cageFoodCapacity;
             Debug.Log("Was added to: " + lastGameObject.name);
         }
     }
 }