static int RemoveCapture(IntPtr L)
{
try
{
ToLua.CheckArgsCount(L, 2);
FairyGUI.EventListener obj = (FairyGUI.EventListener)ToLua.CheckObject(L, 1, typeof(FairyGUI.EventListener));
FairyGUI.EventCallback1 arg0 = null;
LuaTypes funcType2 = LuaDLL.lua_type(L, 2);
if (funcType2 != LuaTypes.LUA_TFUNCTION)
{
arg0 = (FairyGUI.EventCallback1)ToLua.CheckObject(L, 2, typeof(FairyGUI.EventCallback1));
}
else
{
LuaFunction func = ToLua.ToLuaFunction(L, 2);
arg0 = DelegateFactory.CreateDelegate(typeof(FairyGUI.EventCallback1), func) as FairyGUI.EventCallback1;
}
obj.RemoveCapture(arg0);
return(0);
}
catch (Exception e)
{
return(LuaDLL.toluaL_exception(L, e));
}
}