static int Btn_OnPressure(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIScript obj = (UIScript)ToLua.CheckObject <UIScript>(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); obj.Btn_OnPressure(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }