示例#1
0
 public void BuySpeed()
 {
     if (goldScript.goldCount >= speedPrice)
     {
         OnBuyAnything?.Invoke(speedPrice);
         speedPrice *= 2;
         OnBuySpeed?.Invoke();
         RefreshText();
     }
 }
示例#2
0
 public void BuyOxygen()
 {
     if (goldScript.goldCount >= oxygenPrice)
     {
         OnBuyAnything?.Invoke(oxygenPrice);
         oxygenPrice *= 2;
         OnBuyOxygen?.Invoke();
         RefreshText();
     }
 }