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