public void WithDrawCash(double cashToGet) { if (accChecker.AccountActive(GetAccountNumber()) && codeChecker.IsCodeCorrect(GetSecurityCode()) && fundChecker.HaveEnoughMoney(cashToGet)) { Console.WriteLine("Transaction Completed\n"); } else { Console.WriteLine("Transaction Failed\n"); } }
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."); } }