没有找到剧情继续执行,不卡死

dev_chengFeng
jiaoyangna 2021-04-30 16:13:00 +08:00
parent 252454272a
commit 412a4ec851
1 changed files with 13 additions and 4 deletions

View File

@ -460,13 +460,22 @@ function this:ShowDialog()
this:StackPop()
end
else
local config = chapterEventPointData[this.curEvent.groups[this.eventIndex]]
if not config then
this:CloseDiaLog()
LogGreen("this.curEvent.groups[this.eventIndex]:"..this.curEvent.groups[this.eventIndex].." this.eventIndex:"..this.eventIndex)
if this.go then
this.go:StackPop()
this.go = nil
else
this:StackPop()
end
return
end
this.showImg:SetActive(false)
this.dialog.gameObject:SetActive(true)
this.GoOn.gameObject:SetActive(true)
local config = chapterEventPointData[this.curEvent.groups[this.eventIndex]]
if not config then
--LogGreen("this.curEvent.groups[this.eventIndex]:"..this.curEvent.groups[this.eventIndex].." this.eventIndex:"..this.eventIndex)
end
local showValues = GetLanguageStrById(config.ShowValues)
local options = config.Option