示例#1
0
    static int Remove(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            FairyGUI.Timers        obj  = (FairyGUI.Timers)ToLua.CheckObject(L, 1, typeof(FairyGUI.Timers));
            FairyGUI.TimerCallback arg0 = null;
            LuaTypes funcType2          = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (FairyGUI.TimerCallback)ToLua.CheckObject(L, 2, typeof(FairyGUI.TimerCallback));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(FairyGUI.TimerCallback), func) as FairyGUI.TimerCallback;
            }

            obj.Remove(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int Remove(IntPtr l)
 {
     try {
         FairyGUI.Timers        self = (FairyGUI.Timers)checkSelf(l);
         FairyGUI.TimerCallback a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         self.Remove(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Remove(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.Timers        obj  = (FairyGUI.Timers)ToLua.CheckObject <FairyGUI.Timers>(L, 1);
         FairyGUI.TimerCallback arg0 = (FairyGUI.TimerCallback)ToLua.CheckDelegate <FairyGUI.TimerCallback>(L, 2);
         obj.Remove(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }