/// <summary> /// 刷新引导显示按钮列表 /// </summary> private void DeltGuideInfoList() { int[] TaskArray = AdGuideShowTaskQueue.ToArray(); for (int i = 0; i < InfoWindowList.Count; i++) { GuideInfoWidnow infoWd = InfoWindowList[i]; if (i >= AdGuideShowTaskQueue.Count) { infoWd.InfoWindowGameObject.SetActive(false); } else { infoWd.mGuideInfo = ConfigReader.AdvancedGuideInfoDict[TaskArray[i]]; infoWd.ShowGuideInfo(); } } }
private void OnButtonContinueOnClick() { int[] TaskArray = AdGuideShowTaskQueue.ToArray(); List <int> taskList = new List <int>(); foreach (int task in TaskArray) { int mtk = AdGuideShowTaskQueue.Dequeue(); if (mtk != mShowGuideTaskId) { taskList.Add(mtk); } } foreach (int mtask in taskList) { AdGuideShowTaskQueue.Enqueue(mtask); } GuideInfoWindow.SetActive(false); DeltGuideInfoList(); }