/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { base.Initialize(); InputController.IC.OnClick += IC_OnClick; m_iScreenWidth = graphics.GraphicsDevice.Viewport.Width; m_iScreenHeight = graphics.GraphicsDevice.Viewport.Height; m_Tutorial = new TutorialSystem(m_iScreenWidth, m_iScreenHeight); //m_CurrentScene = new GameScene(this); //((GameScene)m_CurrentScene).Initialize(0, 6, true); m_CurrentScene = new StartupScene(this); }
public UIPanel(Scene scene) { m_Scene = scene; }
public void GotoScene(Scene nextScene) { if (m_CurrentScene != null) { m_CurrentScene.Shutdown(); m_CurrentScene = null; } m_CurrentScene = nextScene; }