Exemplo n.º 1
0
 public override void UnloadContent()
 {
     particles = null;
     base.UnloadContent();
 }
Exemplo n.º 2
0
        public override void LoadContent()
        {
            //Load Textures
            defaultTopPaddleTexture = ScreenManager.Game.Content.Load<Texture2D>("Images/defaultTopPaddle");
            defaultBottomPaddleTexture = ScreenManager.Game.Content.Load<Texture2D>("Images/defaultBottomPaddle");
            backgroundTexture = ScreenManager.Game.Content.Load<Texture2D>("Images/background");

            //Initialize managers
            ballManager = new BallManager(ScreenManager.Game.Content, this, ScreenManager.SpriteBatch);
            particles = new ParticleSystem(ScreenManager.Game.Content, ScreenManager.SpriteBatch);
            powerups = new PowerupManager(ScreenManager.Game.Content, this, ScreenManager.SpriteBatch);

            base.LoadContent();

            Start();
        }