void LoadClick() { //这里需要注意,Unity提供的JsonUtility.FromJsonOverwrite方法,官方对这一方法的文档为: //it must be a MonoBehaviour, ScriptableObject, or plain class/struct with the Serializable attribute applied string json = Facade.LoadJsonDataFromLocal("Inventory", "InventoryCache.json"); JsonUtility.FromJsonOverwrite(json, inventoryDataSet); Utility.Debug.LogInfo("LoadJsonDataFromLocal"); UpdateClick(); }