private static void LoadTouchMissionData() { List <string> list = new List <string>(); TextAsset asset = Miscs.LoadResource("Data/_ExcelOutput/AvatarGoodfeelData", BundleType.DATA_FILE) as TextAsset; char[] separator = new char[] { "\n"[0] }; string[] strArray = asset.text.Split(separator); for (int i = 0; i < strArray.Length; i++) { if (strArray[i].Length >= 1) { list.Add(strArray[i]); } } int capacity = list.Count - 1; _touchMissionItemList = new List <TouchMissionItem>(capacity); for (int j = 1; j <= capacity; j++) { char[] chArray2 = new char[] { "\t"[0] }; string[] strArray2 = list[j].Split(chArray2); TouchMissionItem item = new TouchMissionItem { avatarId = int.Parse(strArray2[0]), goodFeelLevel = int.Parse(strArray2[1]), missionId = int.Parse(strArray2[2]) }; _touchMissionItemList.Add(item); } }
private bool IsLimitedByMission(GalTouchInfoItem item) { TouchMissionItem touchMissionItem = GalTouchData.GetTouchMissionItem(item.avatarId, item.heartLevel); if (touchMissionItem == null) { return(false); } MissionDataItem missionDataItem = Singleton <MissionModule> .Instance.GetMissionDataItem(touchMissionItem.missionId); return((missionDataItem == null) || (missionDataItem.status == 2)); }