private void OnGameExit(GameExitEvent e) { _playerInfoManager.Clear(); SingletonManager.Dispose(); if (_roomListener != null) { _roomListener.OnRoomDispose(_room); } _room.Dispose(); }
public void OnDestroy() { Debug.Log("OnDestroy"); _logger.InfoFormat("Start Destroy..."); _isDestroy = true; MyHttpServer.Stop(); if (_loginClient != null) { _loginClient.Dispose(); } _logger.InfoFormat("Login Client Disposed."); HallUtility.ClearAciton(); _clientRoom.Dispose(); DefaultGo.Clear(GameRunningStage.BattleClient); SingletonManager.Dispose(); #if UNITY_SOURCE_MODIFIED && !UNITY_EDITOR UnityProfiler.DisableProfiler(); #endif _logger.InfoFormat("Client Destroy Completed."); }