void SetEndings() { content = string.Empty; foreach (KeyValuePair <int, AchieveEnding> kv in endingInfo) { AchieveEnding ae = kv.Value; content += ae.ToString(isEng); content += "\n\n"; } }
/// <summary> /// 读取成就总表 /// </summary> public static Dictionary <int, AchieveEnding> GetStaticEndings() { Dictionary <int, AchieveEnding> endings = new Dictionary <int, AchieveEnding>(); string path = Constants.DEBUG ? Constants.APP_DEBUG_PATH : Constants.APP_PATH; TextAsset text = Resources.Load <TextAsset>(path + "achieves"); Debug.Log("读取成就列表"); JsonData jsondata = JsonMapper.ToObject(text.text); foreach (JsonData da in jsondata) { AchieveEnding ae = new AchieveEnding(da); endings.Add(ae.UID, ae); //Debug.Log("读取:" + ae.achieveName); } return(endings); }