Example #1
0
 public override void Draw(GameTime gameTIme, SpriteBatch spriteBatch)
 {
     if (isActive)
     {
         animation.Draw(gameTIme, spriteBatch);
     }
 }
Example #2
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (isActive)
     {
         chatBox.Draw(gameTime, spriteBatch);
         animatedTexture.Draw(gameTime, spriteBatch);
         chatBox.DrawText(spriteBatch);
     }
 }
Example #3
0
 public virtual void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     animatedTexture.Draw(gameTime, spriteBatch);
     if (!(isAlive))
     {
         if (deathTime < 25)
         {
             deathAnimation.Draw(gameTime, spriteBatch);
         }
     }
 }
Example #4
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (isChecked)
     {
         animation.Draw(gameTime, spriteBatch);
     }
     else
     {
         spriteBatch.Draw(texture, rectangle, Color.White);
     }
 }
Example #5
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     animation.Draw(gameTime, spriteBatch);
 }