static int OnSubmit(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); TMPro.TMP_InputField obj = (TMPro.TMP_InputField)ToLua.CheckObject(L, 1, typeof(TMPro.TMP_InputField)); UnityEngine.EventSystems.BaseEventData arg0 = (UnityEngine.EventSystems.BaseEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); obj.OnSubmit(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }