コード例 #1
0
        private void OnGameExit(GameExitEvent e)
        {
            _playerInfoManager.Clear();
            SingletonManager.Dispose();

            if (_roomListener != null)
            {
                _roomListener.OnRoomDispose(_room);
            }

            _room.Dispose();
        }
コード例 #2
0
    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.");
    }