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