Пример #1
0
    static int Rewind(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                obj.Rewind();
                return(0);
            }
            else if (count == 2)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
                obj.Rewind(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tween.Rewind"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Пример #2
0
    static int Rewind(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
        bool arg0             = LuaScriptMgr.GetBoolean(L, 2);

        obj.Rewind(arg0);
        return(0);
    }
Пример #3
0
        public void DORewindEx()
        {
            _playCount = -1;
            Tween t = this.tween;

            if (t != null && t.IsInitialized())
            {
                t.Rewind();
            }
        }
Пример #4
0
 static int Rewind(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Tween));
         bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
         obj.Rewind(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }