コード例 #1
0
        public static MetadataMap LoadMetaDataFile(string jsonFileName)
        {
            TextAsset textAsset = Resources.Load <TextAsset>(METADATA_LOC + jsonFileName);

            MetadataMap dataMap = JsonUtility.FromJson <MetadataMap>(textAsset.text);

            // Debug out all the units parsed in.
            for (int i = 0, count = dataMap.Equipment.Count; i < count; i++)
            {
                EquipmentVO vo = dataMap.Equipment[i];

                //Debug.Log("EQ: " + vo.uid);
            }

            dataMap.Process();

            return(dataMap);
        }