static int Exists(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Spine.ExposedList <Spine.Animation> obj = (Spine.ExposedList <Spine.Animation>)ToLua.CheckObject <Spine.ExposedList <Spine.Animation> >(L, 1); System.Predicate <Spine.Animation> arg0 = (System.Predicate <Spine.Animation>)ToLua.CheckDelegate <System.Predicate <Spine.Animation> >(L, 2); bool o = obj.Exists(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }