void UpdateCurrency(Currency cur, double value, int change) { switch (cur) { case Currency.Coins: var data = _model.ConvertCoin(); if (goldAmount) { goldAmount.text = $"{data.gold}g"; } if (silverAmount) { silverAmount.text = $"{data.silver:D2}s"; } if (copperAmount) { copperAmount.text = $"{data.copper:D2}c"; } break; case Currency.Diamonds: if (!diamondsAmount) { return; } diamondsAmount.text = $"{value}"; break; } if (change == 0) { return; } }