public Scoreboard(Sprite2D Red, Sprite2D Blue, Vector2 ScreenScaleFactor) { this.RedPlayerImage = Red; this.BluePlayerImage = Blue; RedCount = TextBox.CreateTextBox(Red.Left + Red.Width + 10, 30, ScreenScaleFactor, null, 0.6f, 0, 0, true); RedCount.InitTextBox(); RedCount.SetFont("ScoreFont"); RedCount.SetColor(Color.WhiteSmoke); BlueCount = TextBox.CreateTextBox(Blue.Left + Blue.Width + 10, 110, ScreenScaleFactor, null, 0.6f, 0, 0, true); BlueCount.InitTextBox(); BlueCount.SetFont("ScoreFont"); BlueCount.SetColor(Color.WhiteSmoke); Result = TextBox.CreateTextBox(-50, 190, ScreenScaleFactor, null, 0.6f, 0, 0, true); Result.InitTextBox(); Result.SetFont("WinFont"); Result.SetColor(Color.WhiteSmoke); Notify = TextBox.CreateTextBox(-70, -60, ScreenScaleFactor, null, 0.6f, 0, 0, true); Notify.InitTextBox(); Notify.SetFont("WinFont"); Notify.SetColor(blue); AddChild(Red); AddChild(Blue); AddChild(RedCount); AddChild(BlueCount); AddChild(Result); AddChild(Notify); }