예제 #1
0
        public override void LoadContent()
        {
            // Create container
            _serviceContainer = new ServiceContainer(ScreenManager.ContentManager, ScreenManager.GraphicsDevice);
            _serviceContainer.Camera = Camera2D;

            // Prepare services we need
            RegisterServices();

            UiManager.Load("");

            UiManager.Load(@"Content\UI\game\index.html");
            UiManager.OnLoadCompleted += OnLoadCompleted;

            base.LoadContent();
        }
예제 #2
0
 public override void LoadContent()
 {
     ServiceContainer = new ServiceContainer(ScreenManager.ContentManager, ScreenManager.GraphicsDevice);
     base.LoadContent();
 }