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