Ejemplo n.º 1
0
 /// <summary>
 /// 进入引导任务
 /// </summary>
 /// <param name="mTaskId"></param>
 private void OnEnterGuideTask(int mTaskId)
 {
     if (AdGuideShowTaskQueue.Count <= AdGuideTaskMaxNum)
     {
         AdGuideShowTaskQueue.Enqueue(mTaskId);
     }
     else
     {
         //AdGuideShowTaskQueue.Peek
         int lastId = AdGuideShowTaskQueue.Dequeue();
         AdGuideShowTaskQueue.Enqueue(mTaskId);
     }
     DeltGuideInfoList();
 }
Ejemplo n.º 2
0
        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();
        }