コード例 #1
0
    static int SetRepeat(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                FairyGUI.GTweener obj = (FairyGUI.GTweener)ToLua.CheckObject <FairyGUI.GTweener>(L, 1);
                int arg0            = (int)LuaDLL.luaL_checknumber(L, 2);
                FairyGUI.GTweener o = obj.SetRepeat(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3)
            {
                FairyGUI.GTweener obj = (FairyGUI.GTweener)ToLua.CheckObject <FairyGUI.GTweener>(L, 1);
                int  arg0             = (int)LuaDLL.luaL_checknumber(L, 2);
                bool arg1             = LuaDLL.luaL_checkboolean(L, 3);
                FairyGUI.GTweener o   = obj.SetRepeat(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GTweener.SetRepeat"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }