Beispiel #1
0
 public void Buy()     // called by a button in editor
 {
     if (_money.Value < _generatorData.CostNext)
     {
         return;
     }
     _money.Subtract(_generatorData.CostNext);
     _generatorData.BuyOne();
     UpdateUI();
 }
Beispiel #2
0
 public void DepositHoney(int depositAmount)
 {
     _honeyCount.Subtract(depositAmount);
     _wallet.Add(depositAmount * _pricePerHoneyUnit.Value);
 }