예제 #1
0
        protected override void LoadContent()
        {
            if (!TextureManager.ContainsTexture("merchant"))
            {
                TextureManager.AddTexture("merchant", GameRef.Content.Load <Texture2D>(@"Backgrounds\merchant-overlay"));
            }

            if (!TextureManager.ContainsTexture("scene-background"))
            {
                TextureManager.AddTexture("scene-background", GameRef.Content.Load <Texture2D>(@"Scenes\scenebackground"));
            }

            _merchantFont = GameRef.Content.Load <SpriteFont>(@"Fonts\Sansation_Light");
            _sceneFont    = GameRef.Content.Load <SpriteFont>(@"Fonts\Sansation_Light");

            _selected = GameRef.Content.Load <Texture2D>(@"Misc\selected");

            if (GameScene.Selected == null)
            {
                GameScene.Load(GameRef);
            }

            base.LoadContent();
        }