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.");
}
}