예제 #1
0
 public void OnDestroy()
 {
     mLayoutPrefabManager.destroy();
     mMahjongSystem.destroy();
     mSocketManager.destroy();
     mCharacterManager.destroy();
     mGameSceneManager.destroy();
     mAudioManager.destroy();
     mLayoutManager.destroy();
     mCommandSystem.destroy();
     mGameConfig.destory();
     mKeyFrameManager.destroy();
     mHttpServerManager.destroy();
     mGlobalTouchSystem.destroy();
     mDllImportExtern.destroy();
     mShaderManager.destroy();
     mDataBase.destroy();
     mCameraManager.destroy();
     mResourcesManager.destroy();
     mMaterialManager.destroy();
     mApplicationConfig.destory();
     mPlayerHeadManager.destroy();
     mLayoutPrefabManager = null;
     mMahjongSystem       = null;
     mGameConfig          = null;
     mGameUtility         = null;
     mBinaryUtility       = null;
     mFileUtility         = null;
     mMathUtility         = null;
     mStringUtility       = null;
     mUnityUtility        = null;
     mCommandSystem       = null;
     mLayoutManager       = null;
     mAudioManager        = null;
     mGameSceneManager    = null;
     mCharacterManager    = null;
     mSocketManager       = null;
     mKeyFrameManager     = null;
     mGlobalTouchSystem   = null;
     mDllImportExtern     = null;
     mShaderManager       = null;
     mDataBase            = null;
     mCameraManager       = null;
     mResourcesManager    = null;
     mMaterialManager     = null;
     mApplicationConfig   = null;
     mPlayerHeadManager   = null;
 }
예제 #2
0
 public override void destroy()
 {
     mSocketManager.destroy();
     mGameConfig.destory();
     mMaterialManager.destroy();
     mHeadTextureManager.destroy();
     mMahjongSystem.destroy();
     mSocketManager      = null;
     mGameConfig         = null;
     mGameUtility        = null;
     mMaterialManager    = null;
     mHeadTextureManager = null;
     mMahjongSystem      = null;
     // 最后调用基类的destroy,确保资源被释放完毕
     base.destroy();
 }