Beispiel #1
0
        //* ────────────-_______________________*
        //* constructor & destructor ───────────────────────*

        //* -----------------------------------------------------------------------*
        /// <summary>コンストラクタ。</summary>
        ///
        /// <param name="sceneName">シーン名称。</param>
        protected CSceneBase(string sceneName)
        {
            this.sceneName            = sceneName;
            inputManager              = game.inputManager;
            graphicDeviceManager      = game.graphicDeviceManager;
            contentManager            = game.Content;
            localGameComponentManager = new CGameComponentManager(game);
        }
Beispiel #2
0
            //* ────________________________________*
            //* methods ───────────────────────────────-*

            //* -----------------------------------------------------------------------*
            /// <summary>フィールドのオブジェクトを解放します。</summary>
            public void Dispose()
            {
                registedGameComponentList.Dispose();
                registedGameComponentList = null;
                if (sprite != null)
                {
                    sprite.Dispose();
                    sprite = null;
                }
                graphicsDeviceManager = null;
            }