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(); } }
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(); } }