コード例 #1
0
 public void TransferMoney(Pocket myPocket, int money)
 {
     balance -= money;
     myPocket.AddMoney(money);
     OnMoneyTransfer?.Invoke(myPocket, money);
     OnAnyTransaction?.Invoke("TransferMoney: " + money);
 }
コード例 #2
0
 public void ConvertToCurrency(int money, char Cur, double rate)
 {
     OnMoneyConversion(money, Cur, rate);
     OnAnyTransaction?.Invoke("ConvertToCurrency: " + money);
 }
コード例 #3
0
 public void AddMoney(int a)
 {
     balance += a;
     OnMoneyAdded?.Invoke("Bank->AddMoney, added: " + a);
     OnAnyTransaction?.Invoke("Any transaction: added: " + a);
 }