// Token: 0x06000DCE RID: 3534 RVA: 0x0005FC1C File Offset: 0x0005DE1C
 private void OnGUI()
 {
     this.ReleaseOldLock();
     if (this._popups.Count > 0)
     {
         IPopupDialog popupDialog = this._popups.Peek();
         this._lastLockDepth = popupDialog.Depth;
         GUI.depth           = (int)this._lastLockDepth;
         popupDialog.OnGUI();
         if (Event.current.type == EventType.Layout)
         {
             GuiLockController.EnableLock(this._lastLockDepth);
         }
     }
     GuiManager.DrawTooltip();
 }
 // Token: 0x0600147F RID: 5247 RVA: 0x000758A0 File Offset: 0x00073AA0
 private void OnGUI()
 {
     PanelManager.IsAnyPanelOpen = false;
     foreach (IPanelGui panelGui in this._allPanels.Values)
     {
         if (panelGui.IsEnabled)
         {
             PanelManager.IsAnyPanelOpen = true;
             break;
         }
     }
     if (Event.current.type == EventType.Layout)
     {
         if (PanelManager.IsAnyPanelOpen)
         {
             GuiLockController.EnableLock(GuiDepth.Panel);
         }
         else
         {
             GuiLockController.ReleaseLock(GuiDepth.Panel);
             base.enabled = false;
         }
         if (PanelManager._wasAnyPanelOpen != PanelManager.IsAnyPanelOpen)
         {
             if (PanelManager._wasAnyPanelOpen)
             {
                 AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.ClosePanel, 0UL, 1f, 1f);
             }
             else
             {
                 AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.OpenPanel, 0UL, 1f, 1f);
             }
             PanelManager._wasAnyPanelOpen = !PanelManager._wasAnyPanelOpen;
         }
     }
 }