/// <summary> /// 获取下一个步骤 /// </summary> /// <param name="guideId"></param> /// <returns></returns> public bool TryGetNextStep(out uint guideId) { guideId = 0; if (HaveNextStep) { LocalGuideGroupData localGroupData = GroupData; int stepIndex = 0; if (null != localGroupData && localGroupData.TryGetStepIndex(ID, out stepIndex) && localGroupData.TryGetStep(stepIndex + 1, out guideId)) { return(true); } } return(false); }
/// <summary> /// 获取当前引导的前置引导 /// </summary> /// <param name="guideId"></param> /// <returns></returns> public bool TryGetPreStep(out uint guideId) { guideId = 0; if (null != TableData) { if (TableData.guideStep == 1) { return(false); } else { LocalGuideGroupData localGroupData = GroupData; int stepIndex = 0; if (null != localGroupData && localGroupData.TryGetStepIndex(ID, out stepIndex) && localGroupData.TryGetStep(stepIndex - 1, out guideId)) { return(true); } } } return(false); }