Пример #1
0
    void DoWndEffect()
    {
        GameObject Control = WndEffects.FineChildGameObject(gameObject, "Control");

        GameObject WndBack = WndEffects.FineChildGameObject(gameObject, "WndBackground");

        WndEffects.PlayWndAnimation(Control, "popupStart");
        WndEffects.PlayWndAnimation(WndBack, "wndBackStart");
    }
Пример #2
0
    public static void SetWndBBGTweenTarget(GameObject obj, string wndStr = "WndBackground")
    {
        GameObject WndBack = WndEffects.FineChildGameObject(obj, wndStr);
        UIButton   btn     = WndBack.GetComponent <UIButton>();

        if (btn != null)
        {
            btn.IsTweenTarget = false;
            btn.IsPlaySound   = false;
        }
    }
Пример #3
0
    void BtnClose_OnClickHander(UIButton sender)
    {
        GameObject WndBack = WndEffects.FineChildGameObject(gameObject, "WndBackground");

        WndEffects.PlayWndAnimation(WndBack, "wndBackOver");

        GameObject Control = WndEffects.FineChildGameObject(gameObject, "Control");

        if (Control == null)
        {
            DestoryDialogCallBack(null);
        }
        GameObjectActionWait gadBack = new  GameObjectActionWait(ConstantData.fPopDownAniTime);;

        gadBack.m_complete = DestoryDialogCallBack;
        WndEffects.PlayWndAnimation(Control, gadBack, "popupEnd");
    }
Пример #4
0
    public static void DoWndEffect(GameObject obj, string ControlStr = "Control", string wndStr = "WndBackground")
    {
        GameObject Bott = WndEffects.FineChildGameObject(obj, ControlStr);

        if (Bott != null)
        {
            WndEffects.PlayWndAnimation(Bott, "popupStart");
        }
        GameObject WndBack = WndEffects.FineChildGameObject(obj, wndStr);

        if (WndBack != null)
        {
            UIButton btn = WndBack.GetComponent <UIButton>();
            if (btn != null)
            {
                btn.IsTweenTarget = false;
            }
            //WndEffects.PlayWndAnimation (WndBack,"wndBackStart");
        }
    }
Пример #5
0
    public static void DoCloseWndEffect(GameObject obj, Complete complete = null, string ControlStr = "Control", string wndStr = "WndBackground")
    {
        GameObject Bott = WndEffects.FineChildGameObject(obj, ControlStr);

        WndEffects.PlayWndAnimation(Bott, "popupEnd");

        GameObjectActionWait gadBack = new  GameObjectActionWait(ConstantData.fPopDownAniTime);;

        gadBack.m_complete = complete;

        GameObject WndBack = WndEffects.FineChildGameObject(obj, wndStr);

        if (WndBack != null)
        {
            WndEffects.PlayWndAnimation(WndBack, gadBack, "wndBackOver");
        }
        else
        {
            WndEffects.PlayWndAnimation(Bott, gadBack, "popupEnd");
        }
    }