From fb9d2b72729d57c9d00a8e72b5cc733d127a43dc Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Thu, 29 Apr 2021 17:44:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A7=E6=83=85=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua | 4 ---- .../ManagedResources/~Lua/Modules/Story/StoryMapManager.lua | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua b/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua index a590efa614..faba572335 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua @@ -446,7 +446,6 @@ function this.ExecuteBehavior(beType, beArgs) this.tipButtomRoot:SetActive(false) local isSkip=false local function OnBtnClick(id,str) - LogError("11111111111111111111111111") nextDelayTime=0 nextDelayChange=true isSkip=true @@ -462,7 +461,6 @@ function this.ExecuteBehavior(beType, beArgs) Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnUpdateData, OnUpdateData) return end - LogError("22222222222") nextDelayTime=0 nextDelayChange=true -- 先跳转引导 @@ -475,13 +473,11 @@ end function this.ShowStory(nextId,OnFocus) if StoryMapManager.isShowStory ~= 0 then - StoryMapManager.isShowStory = 0 local isShowStory = 1 if PlayerPrefs.HasKey("StoryMapPanel"..StoryMapManager.isShowStory..PlayerManager.uid) then isShowStory = PlayerPrefs.GetInt("StoryMapPanel"..StoryMapManager.isShowStory..PlayerManager.uid) end if isShowStory == 1 then - LogGreen("this.gameObject:"..this.gameObject.name) this.gameObject:SetActive(false) local function onCloseStoryMapPanel() this.GameSetActive(nextId, OnFocus) diff --git a/Assets/ManagedResources/~Lua/Modules/Story/StoryMapManager.lua b/Assets/ManagedResources/~Lua/Modules/Story/StoryMapManager.lua index ff59bdc63c..0478bbe1c2 100644 --- a/Assets/ManagedResources/~Lua/Modules/Story/StoryMapManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Story/StoryMapManager.lua @@ -15,6 +15,7 @@ function this.InitData(groupId) end function this.InitGroupIds(groupId) + LogGreen("groupId:"..groupId) local config = storyMapConfig[groupId] table.insert(this.groupConfigs,config) if config.NextId and config.NextId > 0 then @@ -32,6 +33,7 @@ function this.GetSingleStoryConfig() UIManager.OpenPanel(UIName.StoryMapPanel,config) table.remove(this.groupConfigs,1) else + StoryMapManager.isShowStory = 0 Game.GlobalEvent:DispatchEvent(GameEvent.GuaJi.CloseStoryMapPanel) end end