From d2bc86161bf01b9ac01ba7b4b6ee7e341778c0c2 Mon Sep 17 00:00:00 2001 From: River Jiang <546213258@qq.com> Date: Wed, 28 Oct 2020 14:34:36 +0800 Subject: [PATCH] 充能进度动画平滑加强 --- Assets/Scripts/Guide/GuideCtrl.cs | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/Guide/GuideCtrl.cs b/Assets/Scripts/Guide/GuideCtrl.cs index bfdaddd..064229b 100644 --- a/Assets/Scripts/Guide/GuideCtrl.cs +++ b/Assets/Scripts/Guide/GuideCtrl.cs @@ -63,6 +63,7 @@ { //Time.timeScale = 0;//游戏暂停,这样会导致协程停止了 ChangeStep(GuideEnum.Step0); + GameConfig.CanOpenNewTower = false; // switch (step) // { // case 2: @@ -174,6 +175,8 @@ if (currentIndex == -1)//初始化本步 { CommonDebugHelper.DebugError("第1步开始"); + GA_SDK_Manager.Ins.Statistics(5);//埋点 + currentIndex = 0; needIndex = 2; panel.SetGuideUI(true); @@ -189,6 +192,8 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第2步开始"); + GA_SDK_Manager.Ins.Statistics(6);//埋点 + GA_SDK_Manager.Ins.GuideStep(1);//埋点 currentIndex = 0; needIndex = 2; @@ -234,6 +239,8 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第3步开始"); + GA_SDK_Manager.Ins.GuideStep(2);//埋点 + currentIndex = 0; needIndex = 2; panel.Step2(currentIndex); @@ -254,6 +261,7 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第4步开始"); + GA_SDK_Manager.Ins.GuideStep(3);//埋点 currentIndex = 0; needIndex = 2; @@ -285,6 +293,7 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第5步开始"); + GA_SDK_Manager.Ins.GuideStep(4);//埋点 currentIndex = 0; panel.Step4(currentIndex, allGuideDic[currentStep][currentIndex]); @@ -304,6 +313,7 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第6步开始"); + GA_SDK_Manager.Ins.GuideStep(5);//埋点 EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.CreateFirstWave); panel.Step5(currentIndex, ""); @@ -331,6 +341,7 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第7步开始"); + GA_SDK_Manager.Ins.GuideStep(6);//埋点 panel.SetGuideUI(false); //恢复出怪 @@ -362,10 +373,12 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第8步开始"); + GA_SDK_Manager.Ins.GuideStep(7);//埋点 currentIndex = 0; needIndex = 1; panel.SetGuideUI(false); + GameConfig.CanOpenNewTower = true; //等待解锁塔 panel.Step7(currentIndex, allGuideDic[currentStep][currentIndex]); @@ -387,6 +400,8 @@ if (currentIndex == -1)//初始化本步 { CommonDebugHelper.DebugError("第9步开始"); + GA_SDK_Manager.Ins.GuideStep(8);//埋点 + GameConfig.CanOpenNewTower = false; currentIndex = 0; needIndex = 2; @@ -406,6 +421,7 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第10步开始"); + GA_SDK_Manager.Ins.GuideStep(9);//埋点 currentIndex = 0; needIndex = 2; @@ -445,6 +461,7 @@ if (currentIndex == -1)//初始化本步 { CommonDebugHelper.DebugError("第11步开始"); + GA_SDK_Manager.Ins.GuideStep(10);//埋点 currentIndex = 0; needIndex = 2; @@ -464,6 +481,7 @@ if (currentIndex == -1) { CommonDebugHelper.DebugError("第12步开始"); + GA_SDK_Manager.Ins.GuideStep(11);//埋点 currentIndex = 0; needIndex = 1; @@ -499,6 +517,7 @@ if (currentIndex == -1)//初始化本步 { CommonDebugHelper.DebugError("第13步开始"); + GA_SDK_Manager.Ins.GuideStep(12);//埋点 currentIndex = 0; needIndex = 3; @@ -516,6 +535,11 @@ private void Finish() { UnityEngine.Debug.Log("新手指导已经完成了"); + GA_SDK_Manager.Ins.GuideStep(13);//埋点 + + GameConfig.CanOpenNewTower = true; + GameConfig.CanBuyNewTower = true; + EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.GuideFinish); Destroy(gameObject); //gameObject.SetActive(false); -- Gitblit v1.9.1