public static int IsLoop(IntPtr l) { int result; try { UISpineGraphic uispineGraphic = (UISpineGraphic)LuaObject.checkSelf(l); int trackIndex; LuaObject.checkType(l, 2, out trackIndex); bool b = uispineGraphic.IsLoop(trackIndex); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }