private void UpdateScore() { if (selectedActor) { this.coinCount = selectedActor.GetCoins(); countText.text = coinCount.ToString(); } }