Beispiel #1
0
    void ReadCharacterInfos()
    {
        CharacterInfo.JsonData[] datas;

        TextAsset dataAsset = BundleManager.Instance.GetCharEquipBundleObject(CharacterDataBundleName) as TextAsset;

        datas = JsonConvert.DeserializeObject <CharacterInfo.JsonData[]>(dataAsset.text);

        foreach (var child in datas)
        {
            CharacterInfo info = new CharacterInfo(child);
            CharacterInfos.Add(child.charType, info);
        }
    }