예제 #1
0
        public virtual void Draw(SpriteBatch sb, Color color)
        {
            Color tint = color;

            if (State is AttackingUpLinkState)
            {
                this.origin = new Vector2(0, 15);
            }
            else if (State is AttackingLeftLinkState)
            {
                this.origin = new Vector2(10, 0);
            }
            else if (State is LinkPickupState)
            {
                HeldItem.Draw(sb, Microsoft.Xna.Framework.Color.White);
                this.origin = new Vector2(0, 0);
            }
            else
            {
                this.origin = new Vector2(0, 0);
            }
            if (State is LinkDeadState)
            {
                tint = this.DeadColor;
            }
            Sprite.Draw(sb, tint, origin);
        }