Update - 1.16.0.138
EN: 1.16.0.138 CN: 1.16.0.137 JP: 1.16.0.141 KR: 1.16.0.143
This commit is contained in:
@@ -57,6 +57,7 @@ function GoldenSpyResultCtrl:Awake()
|
||||
local tbParam = self:GetPanelParam()
|
||||
if type(tbParam) == "table" then
|
||||
self.data = tbParam[1]
|
||||
self.nActId = tbParam[2]
|
||||
end
|
||||
self.bResult = self.data.bResult
|
||||
self.nLevelId = self.data.nLevelId
|
||||
@@ -145,7 +146,13 @@ function GoldenSpyResultCtrl:SetFinishActive(bActive)
|
||||
UTILS.OpenReceiveByChangeInfo(msgData)
|
||||
self.nextGroupId = nextGroupId
|
||||
self.nextLevelId = nextLevelId
|
||||
if self.bSuccess and self.nextGroupId ~= nil and self.nextLevelId ~= nil then
|
||||
local bCurLevelPass = false
|
||||
local actData = PlayerData.Activity:GetActivityDataById(self.nActId)
|
||||
local levelData = actData:GetLevelDataById(self.nLevelId)
|
||||
if levelData ~= nil then
|
||||
bCurLevelPass = levelData.nMaxScore >= self.levelCfg.Score
|
||||
end
|
||||
if self.bSuccess and self.nextGroupId ~= nil and self.nextLevelId ~= nil and bCurLevelPass then
|
||||
self._mapNode.btn_goNext2.gameObject:SetActive(true)
|
||||
else
|
||||
self._mapNode.btn_goNext2.gameObject:SetActive(false)
|
||||
|
||||
Reference in New Issue
Block a user