示例#1
0
 private void OnDestroy()
 {
     instance = null;
     if (inGameLevelManager != null)
     {
         inGameLevelManager.Destroy();
     }
     if (inGameUIManager != null)
     {
         inGameUIManager.Destroy();
     }
     if (modelManager != null)
     {
         modelManager.Destroy();
     }
 }
示例#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();
     }
 }