From 54586ae20464c79374af0c281d2cf7479796c982 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 24 Mar 2021 10:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E4=B9=A6=E7=A7=98=E5=8D=B7=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Main/GMPanel.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Main/GMPanel.lua b/Assets/ManagedResources/~Lua/Modules/Main/GMPanel.lua index fed9af1d47..bd8512d0ec 100644 --- a/Assets/ManagedResources/~Lua/Modules/Main/GMPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Main/GMPanel.lua @@ -122,13 +122,16 @@ end function GMPanel.LVPlayer(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 --绑定事件(用于子类重写) function GMPanel:BindEvent() - Util.AddClick(this.BtnBack, function() PlaySoundWithoutClick(SoundConfig.Sound_UICancel) self:ClosePanel()