コード例 #1
0
ファイル: ShopScript.cs プロジェクト: horikuss20/Apprentice
 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.";
 }
コード例 #2
0
ファイル: ShopScript.cs プロジェクト: horikuss20/Apprentice
 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.";
 }
コード例 #3
0
ファイル: ShopScript.cs プロジェクト: horikuss20/Apprentice
 public void DebugGetMoney()
 {
     shopNum       = ShopNum.MoneyDebug;
     ShopText.text = "Get 100 coins";
 }
コード例 #4
0
ファイル: ShopScript.cs プロジェクト: horikuss20/Apprentice
 public void XpPotion()
 {
     shopNum       = ShopNum.XpPotion;
     ShopText.text = "A useable potion that will give you x XP";
 }
コード例 #5
0
ファイル: ShopScript.cs プロジェクト: horikuss20/Apprentice
 public void MagicPotion()
 {
     shopNum       = ShopNum.MagicPotion;
     ShopText.text = "A useable potion that will fully regen your magic";
 }
コード例 #6
0
ファイル: ShopScript.cs プロジェクト: horikuss20/Apprentice
 public void BuyDarkMagic()
 {
     shopNum       = ShopNum.DarkMagic;
     ShopText.text = "Gives you dark magic. It's focused on damage over time.";
 }
コード例 #7
0
ファイル: ShopScript.cs プロジェクト: horikuss20/Apprentice
 public void BuyLightMagic()
 {
     shopNum       = ShopNum.LightMagic;
     ShopText.text = "Gives you light magic. It's focused on area of effect and single target damage.";
 }