From 84f5ce48a3e7f1e7edb68f5cb27331fbc7a88ac6 Mon Sep 17 00:00:00 2001 From: vurtne14 Date: Tue, 27 May 2025 10:44:02 +0800 Subject: [PATCH] 1 --- .../~Lua/Modules/Guide/GuideManager.lua | 6 +++--- .../~Lua/Modules/Guide/GuidePanel.lua | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua b/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua index 46f8a18807..82f6946f03 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua @@ -66,12 +66,12 @@ function this.OnLevelChange() -- 首充引导特殊处理到十级开放 if PlayerManager.level == 10 then LogError(" 首充加入引导") - if CheckListIsContainValue1(_FuncGuideList, 100200) == false then + --if CheckListIsContainValue1(_FuncGuideList, 100200) == false then --if PlayerPrefs.GetInt(PlayerManager.uid.."isGMEsp")==0 then --GuideManager.ShowGuide(100200) - table.insert(_FuncGuideList, 100200) + --table.insert(_FuncGuideList, 100200) --end - end + --end this.CheckFuncGuide() --解开孙悟空封印的剧情 StoryMapManager.isShowStory = 1 diff --git a/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua b/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua index f78c7ee81c..97b28c51c2 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua @@ -578,20 +578,23 @@ function this.ShowStory(nextId, OnFocus) local isShowStory = 1 if PlayerPrefs.HasKey("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid) then isShowStory = PlayerPrefs.GetInt("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid) + --LogWarn("dddddddddddddddddddddddddddd") end if isShowStory == 1 then this.gameObject:SetActive(false) local function onCloseStoryMapPanel() + --LogWarn("dddddddddddddddddddddddddddd") this.GameSetActive(nextId, OnFocus) Game.GlobalEvent:RemoveEvent(GameEvent.GuaJi.CloseStoryMapPanel, onCloseStoryMapPanel) end Game.GlobalEvent:AddEvent(GameEvent.GuaJi.CloseStoryMapPanel, onCloseStoryMapPanel) PlayerPrefs.SetInt("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid, 0) StoryMapManager.InitData(StoryMapManager.isShowStory) + --LogWarn("dddddddddddddddddddddddddddd") else - this.NextGuide(nextId) - Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus) - Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnFocus, OnFocus) + --this.NextGuide(nextId) + --Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus) + --Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnFocus, OnFocus) end else this.NextGuide(nextId) @@ -602,6 +605,7 @@ end function this.GameSetActive(nextId, OnFocus) this.gameObject:SetActive(true) + --LogWarn("===================================") this.NextGuide(nextId) Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus) Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnFocus, OnFocus) @@ -654,6 +658,7 @@ end -- 下一个 function this.NextGuide(nextId) + LogWarn("===================================") if audio then SoundManager.StopSound(audio) end