| | |
| | | if (currentIndex == -1)//初始化本步 |
| | | { |
| | | CommonDebugHelper.DebugError("第1步开始"); |
| | | GA_SDK_Manager.Ins.Statistics(5);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 2; |
| | | panel.SetGuideUI(true); |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第2步开始"); |
| | | GA_SDK_Manager.Ins.Statistics(6);//埋点 |
| | | GA_SDK_Manager.Ins.GuideStep(1);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 2; |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第3步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(2);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 2; |
| | | panel.Step2(currentIndex); |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第4步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(3);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 2; |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第5步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(4);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | panel.Step4(currentIndex, allGuideDic[currentStep][currentIndex]); |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第6步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(5);//埋点 |
| | | |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.CreateFirstWave); |
| | | panel.Step5(currentIndex, ""); |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第7步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(6);//埋点 |
| | | |
| | | panel.SetGuideUI(false); |
| | | //恢复出怪 |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第8步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(7);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 1; |
| | |
| | | if (currentIndex == -1)//初始化本步 |
| | | { |
| | | CommonDebugHelper.DebugError("第9步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(8);//埋点 |
| | | GameConfig.CanOpenNewTower = false; |
| | | |
| | | currentIndex = 0; |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第10步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(9);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 2; |
| | |
| | | if (currentIndex == -1)//初始化本步 |
| | | { |
| | | CommonDebugHelper.DebugError("第11步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(10);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 2; |
| | |
| | | if (currentIndex == -1) |
| | | { |
| | | CommonDebugHelper.DebugError("第12步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(11);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 1; |
| | |
| | | if (currentIndex == -1)//初始化本步 |
| | | { |
| | | CommonDebugHelper.DebugError("第13步开始"); |
| | | GA_SDK_Manager.Ins.GuideStep(12);//埋点 |
| | | |
| | | currentIndex = 0; |
| | | needIndex = 3; |
| | |
| | | private void Finish() |
| | | { |
| | | UnityEngine.Debug.Log("新手指导已经完成了"); |
| | | GA_SDK_Manager.Ins.GuideStep(13);//埋点 |
| | | |
| | | GameConfig.CanOpenNewTower = true; |
| | | |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.GuideFinish); |