From cdbde502db2e72dcc9d95392497ddba30bed3c62 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Tue, 27 Oct 2020 14:45:24 +0800 Subject: [PATCH] 新手引导禁止购买塔位 --- Assets/Scripts/Guide/GuideCtrl.cs | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/Guide/GuideCtrl.cs b/Assets/Scripts/Guide/GuideCtrl.cs index bfdaddd..6c0e062 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: @@ -366,6 +367,7 @@ currentIndex = 0; needIndex = 1; panel.SetGuideUI(false); + GameConfig.CanOpenNewTower = true; //等待解锁塔 panel.Step7(currentIndex, allGuideDic[currentStep][currentIndex]); @@ -387,6 +389,7 @@ if (currentIndex == -1)//初始化本步 { CommonDebugHelper.DebugError("第9步开始"); + GameConfig.CanOpenNewTower = false; currentIndex = 0; needIndex = 2; @@ -516,6 +519,8 @@ private void Finish() { UnityEngine.Debug.Log("新手指导已经完成了"); + GameConfig.CanOpenNewTower = true; + EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.GuideFinish); Destroy(gameObject); //gameObject.SetActive(false); -- Gitblit v1.9.1