public void SetContents(string contents, double value)
 {
     if (upgradeCost <= value)
     {
         purchaseButton.interactable = true;
     }
     contentsText.text = string.Format(contentsText.text, contents);
     purchaseText.text = string.Format(purchaseText.text, UnitSetter.GetUnitString(upgradeCost));
 }
 public void ShowAttack(double attack)
 {
     AttackText.text = UnitSetter.GetUnitString(attack);
 }
 public void ShowMoney(double money)
 {
     MoneyText.text = UnitSetter.GetUnitString(money);
     ShopElemts[0].SetContents("1", money);
     ShopElemts[1].SetContents("1", money);
 }
 public void SetUp(string title, string contents)
 {
     titleText.text    = title;
     contentsText.text = string.Format(contentsText.text, contents);
     purchaseText.text = string.Format(purchaseText.text, UnitSetter.GetUnitString(upgradeCost));
 }