void Update() { _seq++; if (Debug.developerConsoleVisible) { Debug.developerConsoleVisible = false; } if (ClientDebugScript.Enabled) { ClientDebugScript.DoUpdate(this); } try { SingletonManager.Get <DurationHelp>().ProfileStart(CustomProfilerStep.GameController); if (_isDestroy) { return; } if (_clientRoom != null) { _clientRoom.Update(); } if (_loginClient != null) { _loginClient.Update(); _loginClient.FlowTick(Time.time); } } catch (Exception e) { _logger.ErrorFormat("unknown error {0}", e); } finally { SingletonManager.Get <DurationHelp>().ProfileEnd(CustomProfilerStep.GameController); // SingletonManager.Get<MyProfilerManager>().RecordToLog(_seq); } }