Пример #1
0
 public bool PayGold(double amount)
 {
     if (amount <= _gold.Value)
     {
         _gold.Value -= amount;
         return(true);
     }
     else
     {
         _ui.AlertUserToNoGold();
         return(false);
     }
 }