private void UpdateCoinsDisplay() { float coinPercentage = itemCollector.GetCoins() / totalCoins * 100.0f; coinText.text = coinPercentage.ToString("n0") + "%"; }