MyGame.Player.Player C# (CSharp) Method

Player() public method

public Player ( MyGame game, SkinnedModel skinnedModel, Unit unit ) : System
game MyGame
skinnedModel XNAnimation.SkinnedModel
unit Unit
return System
        public Player(MyGame game, SkinnedModel skinnedModel, Unit unit)
            : base(game, unit, new PlayerModel(game, skinnedModel))
        {
            foreach (ModelMesh mesh in skinnedModel.Model.Meshes)
                foreach (SkinnedEffect effect in mesh.Effects)
                    effect.EnableDefaultLighting();

            spriteBatch = new SpriteBatch(game.GraphicsDevice);
            crossHairTex = game.Content.Load<Texture2D>("crosshair");
            delayedAction = new DelayedAction(500);
            //run at first to show to the character otherwise the character dont show
            playerRun();
        }