Exemple #1
0
 public override void LoadContent(ContentManager Content, InputManager _inputManager)
 {
     content = new ContentManager(Content.ServiceProvider, "Content");
     currentScreen.LoadContent(Content, inputManager);
     fadeTexture = content.Load <Texture2D>("BlackPixel");
     fade.LoadContent(content, fadeTexture, "", Vector2.Zero);
     fade.Scale = dimensions.X;
 }
Exemple #2
0
        public override void LoadContent(ContentManager Content, InputManager _inputManager)
        {
            base.LoadContent(Content, inputManager);
            fade        = new FadeAnimation();
            startScreen = Content.Load <Texture2D>("StartScreen");

            fade.LoadContent(Content, startScreen, "", Vector2.Zero);
            fade.IsActive = true;
            if (font == null)
            {
                font = content.Load <SpriteFont>("Comic");
            }
        }