Ejemplo n.º 1
0
 public void HealthPotion()
 {
     shopNum = ShopNum.HealthPotion;
     HeartButton.GetComponent <Image>().color  = Color.white;
     HealthButton.GetComponent <Image>().color = Color.yellow;
     if (gm.GetComponent <GameManager>().collectibleCounter >= 20)
     {
         BuyButton.GetComponent <Image>().color = Color.green;
     }
     if (gm.GetComponent <GameManager>().collectibleCounter < 20)
     {
         BuyButton.GetComponent <Image>().color = Color.red;
     }
     ShopText.text = "A useable health potion that will heal 1 heart of damage.";
 }
Ejemplo n.º 2
0
 public void BuyHeart()
 {
     shopNum = ShopNum.BuyHeart;
     HealthButton.GetComponent <Image>().color = Color.white;
     HeartButton.GetComponent <Image>().color  = Color.yellow;
     if (gm.GetComponent <GameManager>().collectibleCounter >= 150)
     {
         BuyButton.GetComponent <Image>().color = Color.green;
     }
     if (gm.GetComponent <GameManager>().collectibleCounter < 150)
     {
         BuyButton.GetComponent <Image>().color = Color.red;
     }
     ShopText.text = "Adds another heart to your current health pool.";
 }
Ejemplo n.º 3
0
 public void DebugGetMoney()
 {
     shopNum       = ShopNum.MoneyDebug;
     ShopText.text = "Get 100 coins";
 }
Ejemplo n.º 4
0
 public void XpPotion()
 {
     shopNum       = ShopNum.XpPotion;
     ShopText.text = "A useable potion that will give you x XP";
 }
Ejemplo n.º 5
0
 public void MagicPotion()
 {
     shopNum       = ShopNum.MagicPotion;
     ShopText.text = "A useable potion that will fully regen your magic";
 }
Ejemplo n.º 6
0
 public void BuyDarkMagic()
 {
     shopNum       = ShopNum.DarkMagic;
     ShopText.text = "Gives you dark magic. It's focused on damage over time.";
 }
Ejemplo n.º 7
0
 public void BuyLightMagic()
 {
     shopNum       = ShopNum.LightMagic;
     ShopText.text = "Gives you light magic. It's focused on area of effect and single target damage.";
 }