private float GetDelayTime(bool isFadeIn = true)
    {
        Camera             orthoCamera        = GUIMain.GetOrthoCamera();
        Vector3            vector             = orthoCamera.WorldToScreenPoint(base.gameObject.transform.position);
        GUISelectPanelBSUD guiselectPanelBSUD = null;

        if (base.transform.parent != null)
        {
            guiselectPanelBSUD = base.transform.parent.gameObject.GetComponent <GUISelectPanelBSUD>();
        }
        if (guiselectPanelBSUD == null)
        {
            float num = (float)orthoCamera.pixelHeight - vector.y;
            if (num < -(base.height / 2f))
            {
                return(-800f);
            }
            if (num > (float)orthoCamera.pixelHeight + base.height / 2f)
            {
                return(-800f);
            }
            num += base.height / 2f;
            return(num / this.efcParam.lengPerSec);
        }
        else
        {
            float num2 = guiselectPanelBSUD.ListWindowViewRect.yMin - base.height / 2f - 40f;
            float num3 = guiselectPanelBSUD.ListWindowViewRect.yMax + base.height / 2f + 40f;
            float num4 = guiselectPanelBSUD.gameObject.transform.localPosition.y + base.gameObject.transform.localPosition.y;
            if (num4 > num3)
            {
                return(-800f);
            }
            if (num4 < num2)
            {
                return(-800f);
            }
            bool flag;
            if (isFadeIn)
            {
                flag = this.efcParam.isTopDelayStart;
            }
            else
            {
                flag = this.efcParam.isTopDelayEnd;
            }
            float num5;
            if (flag)
            {
                num5 = num3 - num4;
            }
            else
            {
                num5 = num4 - num2;
            }
            return(num5 / this.efcParam.lengPerSec);
        }
    }
 private void SetCT2Parent(int add)
 {
     if (base.transform.parent != null)
     {
         GUISelectPanelBSUD component = base.transform.parent.GetComponent <GUISelectPanelBSUD>();
         if (component != null)
         {
             int num = component.StartFadeEfcCT;
             num += add;
             component.StartFadeEfcCT = num;
         }
         else
         {
             GUISelectPanelViewUD component2 = base.transform.parent.GetComponent <GUISelectPanelViewUD>();
             if (component2 != null)
             {
                 int num2 = component2.StartFadeEfcCT;
                 num2 += add;
                 component2.StartFadeEfcCT = num2;
             }
         }
     }
 }