剧情提交
parent
ed9c058ece
commit
fb9d2b7272
|
@ -446,7 +446,6 @@ function this.ExecuteBehavior(beType, beArgs)
|
||||||
this.tipButtomRoot:SetActive(false)
|
this.tipButtomRoot:SetActive(false)
|
||||||
local isSkip=false
|
local isSkip=false
|
||||||
local function OnBtnClick(id,str)
|
local function OnBtnClick(id,str)
|
||||||
LogError("11111111111111111111111111")
|
|
||||||
nextDelayTime=0
|
nextDelayTime=0
|
||||||
nextDelayChange=true
|
nextDelayChange=true
|
||||||
isSkip=true
|
isSkip=true
|
||||||
|
@ -462,7 +461,6 @@ function this.ExecuteBehavior(beType, beArgs)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnUpdateData, OnUpdateData)
|
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnUpdateData, OnUpdateData)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
LogError("22222222222")
|
|
||||||
nextDelayTime=0
|
nextDelayTime=0
|
||||||
nextDelayChange=true
|
nextDelayChange=true
|
||||||
-- 先跳转引导
|
-- 先跳转引导
|
||||||
|
@ -475,13 +473,11 @@ end
|
||||||
|
|
||||||
function this.ShowStory(nextId,OnFocus)
|
function this.ShowStory(nextId,OnFocus)
|
||||||
if StoryMapManager.isShowStory ~= 0 then
|
if StoryMapManager.isShowStory ~= 0 then
|
||||||
StoryMapManager.isShowStory = 0
|
|
||||||
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)
|
||||||
end
|
end
|
||||||
if isShowStory == 1 then
|
if isShowStory == 1 then
|
||||||
LogGreen("this.gameObject:"..this.gameObject.name)
|
|
||||||
this.gameObject:SetActive(false)
|
this.gameObject:SetActive(false)
|
||||||
local function onCloseStoryMapPanel()
|
local function onCloseStoryMapPanel()
|
||||||
this.GameSetActive(nextId, OnFocus)
|
this.GameSetActive(nextId, OnFocus)
|
||||||
|
|
|
@ -15,6 +15,7 @@ function this.InitData(groupId)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.InitGroupIds(groupId)
|
function this.InitGroupIds(groupId)
|
||||||
|
LogGreen("groupId:"..groupId)
|
||||||
local config = storyMapConfig[groupId]
|
local config = storyMapConfig[groupId]
|
||||||
table.insert(this.groupConfigs,config)
|
table.insert(this.groupConfigs,config)
|
||||||
if config.NextId and config.NextId > 0 then
|
if config.NextId and config.NextId > 0 then
|
||||||
|
@ -32,6 +33,7 @@ function this.GetSingleStoryConfig()
|
||||||
UIManager.OpenPanel(UIName.StoryMapPanel,config)
|
UIManager.OpenPanel(UIName.StoryMapPanel,config)
|
||||||
table.remove(this.groupConfigs,1)
|
table.remove(this.groupConfigs,1)
|
||||||
else
|
else
|
||||||
|
StoryMapManager.isShowStory = 0
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.GuaJi.CloseStoryMapPanel)
|
Game.GlobalEvent:DispatchEvent(GameEvent.GuaJi.CloseStoryMapPanel)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue