Example #1
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     if (ActiveSprite != null && !isDisposed)
     {
         ActiveSprite.Draw(spriteBatch);
     }
 }
Example #2
0
        /// <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);
        }
Example #3
0
 public void Draw(SpriteBatch spriteBatch)
 {
     ActiveSprite.Draw(spriteBatch);
 }