public void Draw(SpriteBatch spriteBatch, GameTime gameTime) { if (ScoreSprite.ScoringOn) { ScoreSprite.Draw(spriteBatch, gameTime); } sprite.Draw(spriteBatch, gameTime); }
protected override void Render(Graphics graphics) { int frameRate = Paused ? 0 : FrameRate; waveSprite1.Draw(graphics, ClientSize, frameRate); UpdateCodeSprites(graphics); waveSprite2.Draw(graphics, ClientSize, frameRate); fadeSprite.Draw(graphics, ClientSize, frameRate); scoreSprite.Draw(graphics, ClientSize, frameRate); if (Paused) { pauseSprite.Draw(graphics, ClientSize, frameRate); } base.Render(graphics); }