protected void SetPanelState(UIInteractivePanel.STATE s)
 {
     if (this.m_panelState == s)
     {
         return;
     }
     UIInteractivePanel.STATE panelState = this.m_panelState;
     this.m_panelState = s;
     if (this.prevTransition != null)
     {
         this.prevTransition.StopSafe();
     }
     this.StartTransition(s, panelState);
 }
    protected void StartTransition(UIInteractivePanel.STATE s, UIInteractivePanel.STATE prevState)
    {
        int num;

        switch (s)
        {
        case UIInteractivePanel.STATE.NORMAL:
            if (prevState == UIInteractivePanel.STATE.OVER)
            {
                num = 4;
            }
            else
            {
                num = 5;
            }
            break;

        case UIInteractivePanel.STATE.OVER:
            if (prevState == UIInteractivePanel.STATE.NORMAL)
            {
                num = 6;
            }
            else
            {
                num = 7;
            }
            break;

        case UIInteractivePanel.STATE.DRAGGING:
            num = 8;
            break;

        default:
            num = 4;
            break;
        }
        this.prevTransition = this.transitions.list[num];
        this.prevTransition.Start();
    }