MyPolarBear.GameObjects.PolarBear.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public override void Draw(SpriteBatch spriteBatch)
        {
            //spriteBatch.Draw(Texture, Position, null, Color, Rotation, Origin, Scale, SpriteEffects.None, 0f);
            //int rectWidth = Texture.Width;
            //int rectHeight = Texture.Height / 5;
            //Rectangle sourceRect = new Rectangle(0, rectHeight * (aniFrame / 8), rectWidth, rectHeight);

            //rectWidth *= 2;
            //rectHeight *= 2;
            //Rectangle destRect = new Rectangle((int)Position.X - rectWidth / 2, (int)Position.Y - rectHeight / 2, rectWidth, rectHeight);
            //spriteBatch.Draw(Texture, destRect, sourceRect, Color.White);

            ////if (isFiring)
            ////{
            //    aniFrame++;
            //    if (aniFrame % 40 == 0)
            //    {
            //        isFiring = false;
            //        aniFrame = 0;
            //    }
            ////}

            if (IsAlive)
            {

                mScale.X = Scale;
                mScale.Y = Scale;

                //spriteBatch.Draw(ContentManager.GetTexture("HardRock"), CollisionBox, Color.White);
                mAnimator.Draw(spriteBatch, Position, mScale, Color.White, Rotation, Origin, 0);
            }
            else
                spriteBatch.DrawString(ContentManager.GetFont("Calibri"), "GAME OVER!!!", new Vector2(Position.X - 100.0f, Position.Y), Color.Black);
        }