public void SetValue(string key, object newValue) { if (LuaModel == null) { return; } LuaTable metaTab = LuaModel.GetMetaTable(); // Debug.Log("key:" + key + ",Val:" + LuaModel[key] + ",newVal:" + newValue + ",meta:" + metaTab[key]); // metaTab[key] = newValue; LuaModel[key] = newValue; // Debug.Log("-----------key:" + key + ",Val:" + LuaModel[key] + ",newVal:" + newValue + ",meta:" + metaTab[key]); }