zhangjiannan 2025-05-27 10:44:02 +08:00
parent 0101a1461b
commit 84f5ce48a3
2 changed files with 11 additions and 6 deletions

View File

@ -66,12 +66,12 @@ function this.OnLevelChange()
-- 首充引导特殊处理到十级开放 -- 首充引导特殊处理到十级开放
if PlayerManager.level == 10 then if PlayerManager.level == 10 then
LogError(" 首充加入引导") LogError(" 首充加入引导")
if CheckListIsContainValue1(_FuncGuideList, 100200) == false then --if CheckListIsContainValue1(_FuncGuideList, 100200) == false then
--if PlayerPrefs.GetInt(PlayerManager.uid.."isGMEsp")==0 then --if PlayerPrefs.GetInt(PlayerManager.uid.."isGMEsp")==0 then
--GuideManager.ShowGuide(100200) --GuideManager.ShowGuide(100200)
table.insert(_FuncGuideList, 100200) --table.insert(_FuncGuideList, 100200)
--end --end
end --end
this.CheckFuncGuide() this.CheckFuncGuide()
--解开孙悟空封印的剧情 --解开孙悟空封印的剧情
StoryMapManager.isShowStory = 1 StoryMapManager.isShowStory = 1

View File

@ -578,20 +578,23 @@ function this.ShowStory(nextId, OnFocus)
local isShowStory = 1 local isShowStory = 1
if PlayerPrefs.HasKey("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid) then if PlayerPrefs.HasKey("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid) then
isShowStory = PlayerPrefs.GetInt("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid) isShowStory = PlayerPrefs.GetInt("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid)
--LogWarn("dddddddddddddddddddddddddddd")
end end
if isShowStory == 1 then if isShowStory == 1 then
this.gameObject:SetActive(false) this.gameObject:SetActive(false)
local function onCloseStoryMapPanel() local function onCloseStoryMapPanel()
--LogWarn("dddddddddddddddddddddddddddd")
this.GameSetActive(nextId, OnFocus) this.GameSetActive(nextId, OnFocus)
Game.GlobalEvent:RemoveEvent(GameEvent.GuaJi.CloseStoryMapPanel, onCloseStoryMapPanel) Game.GlobalEvent:RemoveEvent(GameEvent.GuaJi.CloseStoryMapPanel, onCloseStoryMapPanel)
end end
Game.GlobalEvent:AddEvent(GameEvent.GuaJi.CloseStoryMapPanel, onCloseStoryMapPanel) Game.GlobalEvent:AddEvent(GameEvent.GuaJi.CloseStoryMapPanel, onCloseStoryMapPanel)
PlayerPrefs.SetInt("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid, 0) PlayerPrefs.SetInt("StoryMapPanel" .. StoryMapManager.isShowStory .. PlayerManager.uid, 0)
StoryMapManager.InitData(StoryMapManager.isShowStory) StoryMapManager.InitData(StoryMapManager.isShowStory)
--LogWarn("dddddddddddddddddddddddddddd")
else else
this.NextGuide(nextId) --this.NextGuide(nextId)
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus) --Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus)
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnFocus, OnFocus) --Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnFocus, OnFocus)
end end
else else
this.NextGuide(nextId) this.NextGuide(nextId)
@ -602,6 +605,7 @@ end
function this.GameSetActive(nextId, OnFocus) function this.GameSetActive(nextId, OnFocus)
this.gameObject:SetActive(true) this.gameObject:SetActive(true)
--LogWarn("===================================")
this.NextGuide(nextId) this.NextGuide(nextId)
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus) Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus)
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnFocus, OnFocus) Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnFocus, OnFocus)
@ -654,6 +658,7 @@ end
-- 下一个 -- 下一个
function this.NextGuide(nextId) function this.NextGuide(nextId)
LogWarn("===================================")
if audio then if audio then
SoundManager.StopSound(audio) SoundManager.StopSound(audio)
end end