private void OnDestroy()
 {
     instance = null;
     if (touchManager != null)
     {
         touchManager.Destroy();
     }
     if (inGameObjectManager != null)
     {
         inGameObjectManager.Destroy();
     }
     if (inGamePlayerManager != null)
     {
         inGamePlayerManager.Destroy();
     }
     if (inGameLevelManager != null)
     {
         inGameLevelManager.Destroy();
     }
     if (inGameMapManager != null)
     {
         inGameMapManager.Destroy();
     }
     if (gameEffectManager != null)
     {
         gameEffectManager.Destroy();
     }
 }
Beispiel #2
0
 private void OnDestroy()
 {
     instance = null;
     if (inGameLevelManager != null)
     {
         inGameLevelManager.Destroy();
     }
     if (inGameUIManager != null)
     {
         inGameUIManager.Destroy();
     }
     if (modelManager != null)
     {
         modelManager.Destroy();
     }
     if (gameEffectManager != null)
     {
         gameEffectManager.Destroy();
     }
 }