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."; }
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."; }
public void DebugGetMoney() { shopNum = ShopNum.MoneyDebug; ShopText.text = "Get 100 coins"; }
public void XpPotion() { shopNum = ShopNum.XpPotion; ShopText.text = "A useable potion that will give you x XP"; }
public void MagicPotion() { shopNum = ShopNum.MagicPotion; ShopText.text = "A useable potion that will fully regen your magic"; }
public void BuyDarkMagic() { shopNum = ShopNum.DarkMagic; ShopText.text = "Gives you dark magic. It's focused on damage over time."; }
public void BuyLightMagic() { shopNum = ShopNum.LightMagic; ShopText.text = "Gives you light magic. It's focused on area of effect and single target damage."; }