static int OnSelect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); UIEventListener obj = (UIEventListener)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIEventListener"); BaseEventData arg0 = (BaseEventData)LuaScriptMgr.GetNetObject(L, 2, typeof(BaseEventData)); obj.OnSelect(arg0); return(0); }
static int OnSelect(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIEventListener obj = (UIEventListener)ToLua.CheckObject(L, 1, typeof(UIEventListener)); UnityEngine.EventSystems.BaseEventData arg0 = (UnityEngine.EventSystems.BaseEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); obj.OnSelect(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }