Example #1
0
 public void OnClickButton()
 {
     if (dpm.GetDP() >= cost && button.interactable)
     {
         dpm.UseDP(cost);
         float newCost = cost * ratio;
         cost        = (int)newCost;
         dptext.text = "1clickダイス+1\n" + cost.ToString() + "DP";
     }
 }
Example #2
0
 public void OnClickButton()
 {
     if (dpm.GetDP() >= cost && button.interactable)
     {
         dpm.UseDP(cost);
         //dpm.AddPower(1);
         float newCost = cost * ratio;
         cost        = (int)newCost;
         dptext.text = "DP倍率+1倍\n" + cost.ToString() + "DP";
     }
 }
Example #3
0
 public void OnClickButton()
 {
     if (dpm.GetDP() >= cost && button.interactable)
     {
         dpm.UseDP(cost);
         float newCost = cost * ratio;
         cost        = (int)newCost;
         putext.text = "自動ダイス間隔+1/m\n" + cost.ToString() + "DP";
         if (dpm.GetDP() < cost)
         {
             button.interactable = false;
         }
     }
 }