public void UpdateScoreboard(Color color, int score) { int newScore = 100 + (Math.Max(0, score - 2) * 100); this.score += newScore; scoreLabel.SetText("Score\n" + this.score); StyleBoxFlat style = new StyleBoxFlat(); style.SetBgColor(color); Label newScoreHistory = new Label(); newScoreHistory.SetAlign(Label.AlignEnum.Center); newScoreHistory.SetValign(Label.VAlign.Center); newScoreHistory.Text = score.ToString() + " (" + newScore.ToString() + ")"; newScoreHistory.AddStyleboxOverride("normal", style); scoreHistory.AddChild(newScoreHistory); }