public virtual void Draw(SpriteBatch spriteBatch) { if (ActiveSprite != null && !isDisposed) { ActiveSprite.Draw(spriteBatch); } }
/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); ActiveSprite?.Draw(spriteBatch); staticTextSprite.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public void Draw(SpriteBatch spriteBatch) { ActiveSprite.Draw(spriteBatch); }