static int OnPointerUp(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIButtonAgent obj = (UIButtonAgent)ToLua.CheckObject(L, 1, typeof(UIButtonAgent)); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); obj.OnPointerUp(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_button(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIButtonAgent obj = (UIButtonAgent)o; UIButton ret = obj.button; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index button on a nil value" : e.Message)); } }
static int set_button(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIButtonAgent obj = (UIButtonAgent)o; UIButton arg0 = (UIButton)ToLua.CheckUnityObject(L, 2, typeof(UIButton)); obj.button = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index button on a nil value" : e.Message)); } }