public void ChangeState(MatchmakingState s, float wait = 0.0f)
 {
     if (s == MatchmakingState.Waiting)
     {
         return;
     }
     DevConsole.Log("|PURPLE|MATCHMAKING |DGYELLOW|CHANGE STATE " + s.ToString(), Color.White);
     if ((double)wait == 0.0)
     {
         this.OnStateChange(s);
     }
     else
     {
         UIMatchmakingBox._state = MatchmakingState.Waiting;
         this._pendingState      = s;
         this._stateWait         = wait;
     }
 }
 void SetState(MatchmakingState state)
 {
     stateText.text = state.ToString();
 }