Пример #1
0
    private static int Reset(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIPlayTween uIPlayTween = (UIPlayTween)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIPlayTween");
        bool        boolean     = LuaScriptMgr.GetBoolean(L, 2);

        uIPlayTween.Reset(boolean);
        return(0);
    }
Пример #2
0
    public static int Reset(IntPtr l)
    {
        int result;

        try
        {
            UIPlayTween uIPlayTween = (UIPlayTween)LuaObject.checkSelf(l);
            bool        forward;
            LuaObject.checkType(l, 2, out forward);
            uIPlayTween.Reset(forward);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }