Exemplo n.º 1
0
 public void ShopPotion()
 {
     player.DestroyMoney(coinForPotion);
     player.AddHealth(addHealth);
     if (player.coins <= coinForPotion)
     {
         coinForPotion = 0;
         addHealth     = 0;
     }
 }
 public void AddHealth()
 {
     player.AddHealth(value);
     Destroy(gameObject);
 }