Ejemplo n.º 1
0
                public static void Draw(AnimBool expanded, ColorName colorName, CaretType caretType, float size)
                {
                    switch (caretType)
                    {
                    case CaretType.Caret:
                        AnimatedTexture.Draw(expanded, Carets, size, colorName);
                        break;

                    case CaretType.Move:
                        AnimatedTexture.Draw(expanded, MoveCarets, size, colorName);
                        break;

                    case CaretType.Rotate:
                        AnimatedTexture.Draw(expanded, RotateCarets, size, colorName);
                        break;

                    case CaretType.Scale:
                        AnimatedTexture.Draw(expanded, ScaleCarets, size, colorName);
                        break;

                    case CaretType.Fade:
                        AnimatedTexture.Draw(expanded, FadeCarets, size, colorName);
                        break;
                    }
                }
Ejemplo n.º 2
0
 public virtual void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     animatedTexture.Draw(gameTime, spriteBatch);
     if (!(isAlive))
     {
         if (deathTime < 25)
         {
             deathAnimation.Draw(gameTime, spriteBatch);
         }
     }
 }
Ejemplo n.º 3
0
 internal override void Draw(SpriteBatch _SB)
 {
     mTexture.Draw(_SB);
 }
Ejemplo n.º 4
0
 public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     currentSprite.Draw(spriteBatch, Position);
 }