Exemplo n.º 1
0
 private void OnDestroy()
 {
     instance = null;
     if (inGameLevelManager != null)
     {
         inGameLevelManager.Destroy();
     }
     if (inGameUIManager != null)
     {
         inGameUIManager.Destroy();
     }
     if (modelManager != null)
     {
         modelManager.Destroy();
     }
 }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     instance = null;
     if (inGameLevelManager != null)
     {
         inGameLevelManager.Destroy();
     }
     if (inGameUIManager != null)
     {
         inGameUIManager.Destroy();
     }
     if (modelManager != null)
     {
         modelManager.Destroy();
     }
     if (inGameBgColor != null)
     {
         inGameBgColor.Destroy();
     }
     if (gameEffectManager != null)
     {
         gameEffectManager.Destroy();
     }
 }