Example #1
0
    private static int Stop(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIPlayTween uIPlayTween = (UIPlayTween)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIPlayTween");

        uIPlayTween.Stop();
        return(0);
    }
Example #2
0
    public static int Stop(IntPtr l)
    {
        int result;

        try
        {
            UIPlayTween uIPlayTween = (UIPlayTween)LuaObject.checkSelf(l);
            uIPlayTween.Stop();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #3
0
    public void Show(ePopupMode mode, params object[] objs)     //重载了上面的show
    {
        if (Application.isPlaying == false)
        {
            return;
        }

        //在这里只做了 停止当前的弹出框动画以及 讲现在的弹出框入栈的操作上面的show才是真正的show操作
        PopupBase obj = Load(mode);

        if (obj != null)
        {
            if (gameObject.activeInHierarchy == true && m_TWHide.IsPlaying())
            {
                m_TWHide.Stop();
            }

            StackPopup(new PopupInfo(mode, obj, objs));
            Show(true, obj.bShowImmediately);
        }
    }