public static int constructor(IntPtr l) { int result; try { MaskableGraphic.CullStateChangedEvent o = new MaskableGraphic.CullStateChangedEvent(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
private static int set_onCullStateChanged(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); MaskableGraphic maskableGraphic = (MaskableGraphic)obj; MaskableGraphic.CullStateChangedEvent onCullStateChanged = (MaskableGraphic.CullStateChangedEvent)ToLua.CheckObject(L, 2, typeof(MaskableGraphic.CullStateChangedEvent)); maskableGraphic.onCullStateChanged = onCullStateChanged; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index onCullStateChanged on a nil value"); } return(result); }