Esempio n. 1
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.");
    }
Esempio n. 2
0
 public void Stop()
 {
     _server.Stop();
     btnStart.Text  = "Start";
     this.BackColor = _stoppingColor;
 }