private void InitUserData(ActivityVo curActivity) { _userStoryInfo = new List <ActivityStoryVo>(); var baseUserInfo = GlobalData.ActivityModel.GetActivityTemplateListRes(curActivity.ActivityType).UserActivityPlotInfos; foreach (var t in _rule) { var vo = new ActivityStoryVo(t); _userStoryInfo.Add(vo); } var isNull = baseUserInfo == null; if (!isNull) { foreach (var t in baseUserInfo) { UpdateUserData(t); } } SetFirstStory(); SetCanEnterStory(); foreach (var t in _userStoryInfo) { Debug.LogError("关卡名--->" + t.PlotId + ";是否开放--->" + t.IsOpen + ";是否通关--->" + t.IsPass + ";是否能进入--->" + t.IsCanEnterStory); } }
public void SetData(ActivityStoryVo vo, int index) { _index = index; _data = vo; InitBgPath(index); _contentText.text = "剧情" + index; SetOpen(); }