Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     ownedBG.text = ("Owned: " + Player.bubbleGum);
     if (sword == false)
     {
         swordStock.text = ("In stock: 1");
         swordOwned.text = ("Do not own");
     }
     else
     {
         swordStock.text = ("In stock: 0");
         swordOwned.text = ("Proud owner!");
         swd.Activate();
     }
     if (armor == false)
     {
         armorStock.text = ("In stock: 1");
         armorOwned.text = ("Do not own");
     }
     else
     {
         armorStock.text = ("In stock: 0");
         armorOwned.text = ("Proud owner!");
         amr.Activate();
     }
 }