static int ColorToInt(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.Color arg0 = ToLua.ToColor(L, 1); uint o = EditBox.ColorToInt(arg0); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }