地址来源:
How to Read JSON Data in Unity (LitJSON)
-------------------------------------------------------------------ReadJson
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using LitJson;//*******************************************************
public class ReadJson : MonoBehaviour {
private string jsonstring;
private JsonData itemData;
// Use this for initialization
void Start () {
string filename = Application.dataPath + "/Resources/" + "Items.json";
//Debug.Log(Application.dataPath + "/Resources/"+"Items.json");
jsonstring = File.Rea