public HaveEnoughMoney ( double cashToWithdraw ) : bool | ||
cashToWithdraw | double | |
리턴 | bool |
public void WithdrawCash(double cash) { if (accChecker.AccountActive(GetAccountNumber()) && codeChecker.IsCodeCorrect(GetSecurityCode()) && fundChecker.HaveEnoughMoney(cash)) { fundChecker.WithdrawMoney(cash); Debug.Log("Transaction complete."); } else { Debug.Log("Transaction failed."); } }