Exemplo n.º 1
0
 private void OnEnable()
 {
     if (this._response == null)
     {
         this._requestSteamServers.Clear();
         this._steamServerData.Clear();
         this._mainUI._gameBrowserScreenDS._scrollview.UpdateScrollbars();
         this._dragUI.scrollView.ResetPosition();
         this.OnDisable();
         this._mainUI.RefreshBrowserOverride = new Action(this.ForceRefresh);
         this._dragUI.gameObject.SetActive(false);
         if (this._fillSprite && this._fillSprite.gameObject.activeSelf)
         {
             this._fillSprite.gameObject.SetActive(false);
         }
         this._totalServerRequested = 0;
         this._validServers         = 0;
         this._processedServers     = 0;
         if (this._spinner)
         {
             this._spinner.SetActive(true);
         }
         CoopDedicatedServerList.Source source = this._source;
         if (source != CoopDedicatedServerList.Source.Internet)
         {
             if (source != CoopDedicatedServerList.Source.Lan)
             {
                 if (source == CoopDedicatedServerList.Source.Favorites)
                 {
                     this.FetchFavoritesServers();
                 }
             }
             else
             {
                 this.FetchLanServers();
             }
         }
         else
         {
             this.FetchInternetServers();
         }
     }
 }
Exemplo n.º 2
0
 private void OnEnable()
 {
     if (this._response == null)
     {
         this._listSteamServer = new List <CoopDedicatedServerList.SteamServerData>();
         this._previusInstantiateServerRowIsFinished = true;
         this._dragUI.scrollView.ResetPosition();
         this.OnDisable();
         this._mainUI.RefreshBrowserOverride = new Action(this.ForceRefresh);
         this._dragUI.gameObject.SetActive(false);
         this.listCount = 0;
         if (this._spinner)
         {
             this._spinner.SetActive(true);
         }
         CoopDedicatedServerList.Source source = this._source;
         if (source != CoopDedicatedServerList.Source.Internet)
         {
             if (source != CoopDedicatedServerList.Source.Lan)
             {
                 if (source == CoopDedicatedServerList.Source.Favorites)
                 {
                     this.FetchFavoritesServers();
                 }
             }
             else
             {
                 this.FetchLanServers();
             }
         }
         else
         {
             this.FetchInternetServers();
         }
     }
 }