public override void OnDraw() { m_Playfield.Draw(GetRenderer()); m_ScoreWidget.Text = PlayerSaveInfo <T> .GetPlayerInfo().Score.ToString(); base.OnDraw(); }
public override void OnDraw(Graphics2D graphics2D) { GameImageSequence background = (GameImageSequence)DataAssetCache.Instance.GetAsset(typeof(GameImageSequence), "GameBackground"); graphics2D.Render(background.GetImageByIndex(0), 0, 0); m_Playfield.Draw(graphics2D); base.OnDraw(graphics2D); }