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