コード例 #1
0
ファイル: MbMain.cs プロジェクト: zhilianghuang/Fishing
    //-------------------------------------------------------------------------
    void _destory()
    {
        if (mEngine == null)
        {
            return;
        }

        if (mEngine != null)
        {
            mEngine.close();
            mEngine = null;
        }

        if (UiMgr != null)
        {
            UiMgr.destroy();
            UiMgr = null;
        }

        if (mSoundMgr != null)
        {
            mSoundMgr.destroy();
            mSoundMgr = null;
        }

        if (mAsyncLoadAssetMgr != null)
        {
            mAsyncLoadAssetMgr.destory();
            mAsyncLoadAssetMgr = null;
        }

        Screen.sleepTimeout = SleepTimeout.SystemSetting;

        EbLog.Note("MbMain._destory()");
    }
コード例 #2
0
    //-------------------------------------------------------------------------
    void _destory()
    {
        if (mEngine == null)
        {
            return;
        }

        if (mEngine != null)
        {
            mEngine.close();
            mEngine = null;
        }

        Screen.sleepTimeout = SleepTimeout.SystemSetting;

        EbLog.Note("MbSample._destory()");
    }