static public int OnCustomerEvent(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (matchType(l, argc, 2, typeof(UnityEngine.Object))) { Hugula.UGUIExtend.CEventReceive self = (Hugula.UGUIExtend.CEventReceive)checkSelf(l); UnityEngine.Object a1; checkType(l, 2, out a1); self.OnCustomerEvent(a1); pushValue(l, true); return(1); } else if (matchType(l, argc, 2, typeof(UnityEngine.MonoBehaviour))) { Hugula.UGUIExtend.CEventReceive self = (Hugula.UGUIExtend.CEventReceive)checkSelf(l); UnityEngine.MonoBehaviour a1; checkType(l, 2, out a1); self.OnCustomerEvent(a1); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int OnSelect(IntPtr l) { try { Hugula.UGUIExtend.CEventReceive self = (Hugula.UGUIExtend.CEventReceive)checkSelf(l); UnityEngine.EventSystems.BaseEventData a1; checkType(l, 2, out a1); self.OnSelect(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }