コード例 #1
0
ファイル: Happiness.cs プロジェクト: acid1789/Happiness
        /// <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);
        }
コード例 #2
0
ファイル: UIPanel.cs プロジェクト: acid1789/Happiness
 public UIPanel(Scene scene)
 {
     m_Scene = scene;
 }
コード例 #3
0
ファイル: Happiness.cs プロジェクト: acid1789/Happiness
        public void GotoScene(Scene nextScene)
        {
            if (m_CurrentScene != null)
            {
                m_CurrentScene.Shutdown();
                m_CurrentScene = null;
            }

            m_CurrentScene = nextScene;
        }