Пример #1
0
 public void Hide()
 {
     if (Object.op_Inequality((Object)this._dropdown, (Object)null))
     {
         this.AlphaFadeList(0.15f, 0.0f, (Action)(() =>
         {
             if (!((UIBehaviour)this).IsActive())
             {
                 return;
             }
             if ((double)Time.get_timeScale() != 0.0)
             {
                 ObservableExtensions.Subscribe <long>((IObservable <M0>)Observable.Timer(TimeSpan.FromSeconds(0.150000005960464)), (Action <M0>)(_ =>
                 {
                     Queue <OptimizedDropdown.DropdownItem> queue = (Queue <OptimizedDropdown.DropdownItem>)EnumerableExtension.ToQueue <OptimizedDropdown.DropdownItem>((IEnumerable <M0>) this._items);
                     while (queue.Count > 0)
                     {
                         this._pool.Release(queue.Dequeue());
                     }
                     this._items.Clear();
                     this._dropdown.SetActive(false);
                 }));
             }
             else
             {
                 Queue <OptimizedDropdown.DropdownItem> queue = (Queue <OptimizedDropdown.DropdownItem>)EnumerableExtension.ToQueue <OptimizedDropdown.DropdownItem>((IEnumerable <M0>) this._items);
                 while (queue.Count > 0)
                 {
                     this._pool.Release(queue.Dequeue());
                 }
                 this._items.Clear();
                 this._dropdown.SetActive(false);
             }
         }));
     }
     if (Object.op_Inequality((Object)this._blocker, (Object)null))
     {
         this.DestroyBlocker(this._blocker);
     }
     this._blocker = (GameObject)null;
     this.Select();
 }