Пример #1
0
        public void MainClose()
        {
            GuideNodeManager.IsVirtualBtnGuide = false;
            GuideNodeManager.IsGuide           = false;
            if (currentGuideId == -1)
            {
                EB.Debug.LogError("GuideNodeManager currentguideId = -1 is Error!");
                return;
            }

            List <GuideNode> Temp = new List <GuideNode>();

            if (currentGuideId == 0)
            {
                for (int i = 0; i < listStartNode.Count; i++)
                {
                    if (listStartNode[i].GroupID == 1)
                    {
                        Temp.Add(listStartNode[i]);
                    }
                }
            }
            for (int i = 0; i < listStartNode.Count; i++)
            {
                if (listStartNode[i].GroupID == GuideNodeManager.currentGuideId)
                {
                    Temp.Add(listStartNode[i]);
                }
            }

            for (int i = 0; i < Temp.Count; i++)
            {
                if (i == Temp.Count - 1)
                {
                    SetLinkCompleted(Temp[i], true);
                }
                else
                {
                    SetLinkCompleted(Temp[i], true, false);
                }
            }

            if (_currentGuideNodeArray != null && !_currentGuideNodeArray.isExecuteReceipt)
            {
                NotifyExecuteJump(_currentGuideNodeArray.ExecuteCmd); //执行跳过
            }

            if (_currentGuideNodeArray != null)
            {
                string ExecuteJumpStr = "直接跳过引导";
                FusionTelemetry.GuideData.PostEvent(ExecuteJumpStr, _currentGuideNodeArray.StepID, LoginManager.Instance.LocalUser.CreateTime);
                GlobalUtils.FBSendRecordEvent(ExecuteJumpStr);
            }
        }