//重置每日任务
        public void ResetEveryDayTask()
        {
            PlayerInfo.TaskList.Clear();
            List <TaskEntity> taskEntityList = TaskDBModel.Instance.GetList();

            for (int i = 0; i < taskEntityList.Count; i++)
            {
                PlayerInfo.SimpleTaskInfo info = new PlayerInfo.SimpleTaskInfo();
                info.TaskId            = taskEntityList[i].Id;
                info.IsFinish          = false;
                info.GetReward         = false;
                info.ConditionInfoList = new List <PlayerInfo.SimpleTaskInfo.SimpleConditionInfo>();
                string[] conditionIdArr = taskEntityList[i].Conditions.Split('|');
                for (int j = 0; j < conditionIdArr.Length; j++)
                {
                    PlayerInfo.SimpleTaskInfo.SimpleConditionInfo conditionInfo = new PlayerInfo.SimpleTaskInfo.SimpleConditionInfo();
                    int conditionId = conditionIdArr[j].ToInt();
                    TaskConditionEntity conditionEntity = TaskConditionDBModel.Instance.Get(conditionId);
                    if (conditionEntity == null)
                    {
                        Debug.LogError("错误:任务条件实体找不到");
                        continue;
                    }
                    conditionInfo.Id       = conditionId;
                    conditionInfo.CurCount = 0;
                    info.ConditionInfoList.Add(conditionInfo);
                }
                PlayerInfo.TaskList.Add(info);
            }
            PlayerInfo.ToJson();
        }
 //更新每日任务
 public void UpdateEveryDayTask(int taskId, int conditionId, int count)
 {
     //
     PlayerInfo.SimpleTaskInfo info = PlayerInfo.TaskList.Find(x => x.TaskId == taskId);
     PlayerInfo.SimpleTaskInfo.SimpleConditionInfo condiftion = info.ConditionInfoList.Find(x => x.Id == conditionId);
     info.ConditionInfoList.RemoveAll(x => x.Id == conditionId);
     condiftion.CurCount = count;
     info.ConditionInfoList.Add(condiftion);
     PlayerInfo.TaskList.RemoveAll(x => x.TaskId == taskId);
     PlayerInfo.TaskList.Add(info);
     PlayerInfo.ToJson();
 }