public void LeaveGame(string reason) { this._leaveReason = new GateReconnection.LeaveReason { reason = reason, leaveTime = Time.realtimeSinceStartup }; }
private void CheckLeave() { this._leaveReason.leaveTimeSpan = Time.realtimeSinceStartup - this._leaveReason.leaveTime; if (this._leaveReason.leaveTimeSpan < 60000f) { this._disableProgressBarOnce = true; } this._leaveReason = null; }