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