天书秘卷提交

dev_chengFeng
jiaoyangna 2021-03-24 10:55:33 +08:00
parent 1f036b6793
commit 54586ae204
1 changed files with 5 additions and 2 deletions

View File

@ -122,13 +122,16 @@ end
function GMPanel.LVPlayer(lv) function GMPanel.LVPlayer(lv)
NetManager.GMEvent(string.format("7#%s#0",lv)) NetManager.GMEvent(string.format("7#%s#0",lv))
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnLevelChange) local cor = coroutine.start(function()
coroutine.wait(1)
Game.GlobalEvent:DispatchEvent(GameEvent.Player.OnLevelChange)
LogGreen("升级了")
end)
end end
--绑定事件(用于子类重写) --绑定事件(用于子类重写)
function GMPanel:BindEvent() function GMPanel:BindEvent()
Util.AddClick(this.BtnBack, function() Util.AddClick(this.BtnBack, function()
PlaySoundWithoutClick(SoundConfig.Sound_UICancel) PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
self:ClosePanel() self:ClosePanel()