dev_chengFeng
jiaoyangna 2020-08-03 18:40:20 +08:00
parent 3ff95a1796
commit 6c6f28f634
1 changed files with 5 additions and 1 deletions

View File

@ -148,7 +148,11 @@ function this.BcakUpdateUserExp(_msg)
RedPointManager.SetExploreRedPoint({ level = this.level })
end
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnPlayerLvChange)
this.maxEnergy = this.userLevelData[this.level].MaxEnergy
if this.userLevelData and this.userLevelData[this.level] then
this.maxEnergy = this.userLevelData[this.level].MaxEnergy
else
this.maxEnergy = 0
end
else
this.curLevelAndExp = _msg
end