static void InitData_WarTipInfo() { warTipArr.Clear(); string filePath = Application.persistentDataPath + "/Data/TipTab.txt"; List <WarTipData> temArr = ReflectionAssignment.LoadAndResolveData <WarTipData> (filePath); for (int i = 0; i < temArr.Count; i++) { WarTipData oneTem = temArr [i]; if (oneTem != null) { warTipArr.Add(oneTem); } } if (temArr.Count == 0) { Debuger.LogError("TipTab.txt no content "); } }
static void InitData_MsgIDInfo() { msgIDArr.Clear(); string filePath = Application.persistentDataPath + "/Data/MsgTipInfoTab.txt"; List <MsgSocketTipData> temArr = ReflectionAssignment.LoadAndResolveData <MsgSocketTipData> (filePath); for (int i = 0; i < temArr.Count; i++) { MsgSocketTipData oneTem = temArr [i]; if (oneTem != null) { msgIDArr.Add(oneTem.MsgID); } } if (temArr.Count == 0) { Debuger.LogError("MsgTipInfoTab.txt no content "); } }