WindowsGame1.Hero.LoadContent C# (CSharp) Method

LoadContent() public method

public LoadContent ( int choice ) : void
choice int
return void
        public void LoadContent(int choice)
        {
            if (choice == 1)
            {
                idleSprite = content.Load<Texture2D>("HeroAsset/IdleHero");
                attackSprite = content.Load<Texture2D>("HeroAsset/AttackHero");

                idleAnimation = new Animation(idleSprite, 0.2f, true, 4);
                attackAnimation = new Animation(attackSprite, 0.2f, true, 4);

                int positionX = 150;
                int positionY = 300;

                PlayerPosition = new Vector2(positionX, positionY);
            }
            else if(choice == 2)
            {
                idleSprite = content.Load<Texture2D>("Support/SpriteSheetSup1");

                idleAnimation = new Animation(idleSprite, 0.2f, true, 3);

                int positionX = 0;
                int positionY = 150;

                PlayerPosition = new Vector2(positionX, positionY);
            }
            else if(choice == 3)
            {
                idleSprite = content.Load<Texture2D>("Support/SpriteSheetSup2");

                idleAnimation = new Animation(idleSprite, 0.2f, true, 3);

                int positionX = 300;
                int positionY = 150;

                PlayerPosition = new Vector2(positionX, positionY);
            }

            if (stateChange == 0)
            {
                spritePlayer.PlayAnimation(idleAnimation);
            }
            else if(stateChange == 1)
            {
                spritePlayer.PlayAnimation(attackAnimation);
            }

            //spriteSupport.PlayAnimation(supportAnimation);
            //spriteSupport2.PlayAnimation(support2Animation);
        }