寻宝红点修改 添加解锁新章节音效

dev_chengFeng
zhangqiang 2020-08-04 15:33:44 +08:00
parent 15494b2117
commit e11b5fd7bb
2 changed files with 9 additions and 1 deletions

View File

@ -55,6 +55,13 @@ function this.SetShowFindTreasureVipRedPoint(isShow)
CheckRedPointStatus(RedPointType.SecretTer_FindTreasure)
end
function this.GetShowFindTreasureVipRedPoint()
if this.isShowFindTreasureVipRedPoint then
local gaoState = PrivilegeManager.GetPrivilegeOpenStatus(PRIVILEGE_TYPE.GoFindTreasure)
local haoState = PrivilegeManager.GetPrivilegeOpenStatus(PRIVILEGE_TYPE.HaoFindTreasure)
if gaoState and haoState then
this.isShowFindTreasureVipRedPoint = false
end
end
return this.isShowFindTreasureVipRedPoint
end
return this

View File

@ -52,7 +52,8 @@ end
--界面打开时调用(用于子类重写)
function UnlockCheckpointPopup:OnOpen(_configID,_callBack)
-- 解锁新章节音效
PlaySoundWithoutClick(SoundConfig.Sound_UnlockLevel)
configID = _configID
callBack = _callBack
local chapterId = math.floor(FightPointPassManager.lastPassFightId / 1000)