Exemple #1
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            _tail.Draw(gameTime, spriteBatch);

            base.Draw(gameTime, spriteBatch);

            LeftHandWeapon?.Draw(gameTime, spriteBatch);
            RightHandWeapon?.Draw(gameTime, spriteBatch);
        }
Exemple #2
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            LeftHandWeapon?.Draw(gameTime, spriteBatch);
            RightHandWeapon?.Draw(gameTime, spriteBatch);

            base.Draw(gameTime, spriteBatch);

            if (Upper != null)
            {
                Upper.ShowBack();
                Upper.Position = new Vector2(Position.X, Position.Y);
                Upper.Draw(gameTime, spriteBatch);
            }

            if (Lower != null)
            {
                Lower.ShowBack();
                Lower.Position = new Vector2(Position.X, (Position.Y + Origin.Y) - (Lower.Origin.Y));
                Lower.Draw(gameTime, spriteBatch);
            }
        }