Esempio n. 1
0
    private static int SetRecyclable(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 2);
            TweenParams tweenParams = (TweenParams)ToLua.CheckObject(L, 1, typeof(TweenParams));
            bool        recyclable  = LuaDLL.luaL_checkboolean(L, 2);
            TweenParams o           = tweenParams.SetRecyclable(recyclable);
            ToLua.PushObject(L, o);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }