public bool DepositGold(HQ hq) { if (hq) { if (hq.DepositGold(this)) { Debug.Log("Miner::Deposit. Depositing"); return(true); } else { Debug.Log("Miner::Deposit. Couldn't deposit."); return(false); } } else { return(false); } }