Esempio n. 1
0
    private void PanelMotionOpen()
    {
        UISwitchAnim anim = UIMotionSystem.GetAnim(this.prefabName);

        if (anim != null && anim.ShowAnim > 0)
        {
            this.SetMaskNonLink();
            PanelSwitcher.DoAnim(base.get_transform(), anim.ShowAnim, delegate
            {
                this.ActionOpen();
            });
        }
    }
Esempio n. 2
0
    private bool PanelMotionClose()
    {
        UISwitchAnim anim = UIMotionSystem.GetAnim(this.prefabName);

        if (anim != null && anim.HideAnim > 0)
        {
            this.SetMaskNonLink();
            PanelSwitcher.DoAnim(base.get_transform(), anim.HideAnim, delegate
            {
                this.ActionClose();
            });
            return(true);
        }
        return(false);
    }