Exemple #1
0
 private void OnDestroy()
 {
     if (gameState <= enGameState.ready)
     {
         return;
     }
     Debug.Log("game Destory");
     playerCtrlManager.Destory();
     inGamePlayerManager.Destory();
     inGameObjManager.Destory();
     inGameCameraManager.Destory();
     inGameLevelManager.Destory();
     inGameUIManager.Destory();
     instance = null;
     EventManager.Remove(this);
 }