public void Timedpdate() { IncomeHeld += IncomeRate; // Debug.Log("box side timed"); //add to main box //take from incomeheld if (IncomeHeld > transferRate) { //if held is more than transfer rate MainBox.AddIncome(transferRate); IncomeHeld -= transferRate; } else { //if held isnt more than rate MainBox.AddIncome(IncomeHeld); IncomeHeld -= IncomeHeld; } }