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