예제 #1
0
        public override void Draw(Game.Graphics.TGPASpriteBatch spriteBatch, Texture2D texture)
        {
            Color c = Color.White;

            if (IsHit)
            {
                c = Color.Red;
                this.IsHit = false;
            }

            spriteBatch.Draw(texture, dRect, sRect,c * alphaColor, -(float)rotation, spriteOrigin, this.flips, 1.0f);
        }