Exemple #1
0
    private static int SetAutoKill(IntPtr L)
    {
        int result;

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