private void UpdateSilver() { NumericTextProgress progress = silverText.GetComponent <NumericTextProgress>(); if (progress == null) { silverText.text = playerService.silver.ToString(); } else { progress.SetValue(playerService.silver); } }
private void UpdateGold() { NumericTextProgress progress = goldText.GetComponent <NumericTextProgress>(); if (progress == null) { goldText.text = playerService.gold.ToString(); } else { progress.SetValue(playerService.gold); } }