From 2c27d19046e404dee6a711ca020e78ef04900077 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Sat, 29 May 2021 22:49:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E5=85=B3=E5=8D=A1=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=8F=90=E5=8D=87=E3=80=91=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua index 893b517155..4efede4ca6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_Onhook.lua @@ -12,7 +12,6 @@ this.timer = Timer.New() function this:InitComponent(gameObject) this.spLoader = SpriteLoader.New() this.backBtn=Util.GetGameObject(gameObject,"bg/backBtn") - this.backBtn:SetActive(true) this.Root=Util.GetGameObject(gameObject,"Root") this.proPre=Util.GetGameObject(gameObject,"proPre") this.shengxingIma=Util.GetGameObject(gameObject,"bg/shengxing"):GetComponent("Image") @@ -22,10 +21,6 @@ end function this:BindEvent() Util.AddClick(this.backBtn,function() parent:ClosePanel() - if this.timer then - this.timer:Stop() - this.timer = nil - end end) end @@ -105,6 +100,7 @@ function this:OnClose() this.timer:Stop() this.timer = nil end + parent:ClosePanel() end function this:OnDestroy() From 4ca111da252b2c872f108a1874e4608b5b54711c Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Sat, 29 May 2021 23:14:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E5=B1=B1=E6=B2=B3=E7=A4=BE?= =?UTF-8?q?=E7=A8=B7=E5=9B=BE=E3=80=91=E6=95=B0=E6=8D=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/FightLevel/FightLevelManager.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua b/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua index 19e0b25c59..74ed788058 100644 --- a/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua @@ -104,7 +104,9 @@ function this.GetChapterLevelData(allChapterId,levelId) end end function this.SetCurChapterId(ChapterId) - curChapterId = ChapterId + if curChapterId < ChapterId then + curChapterId = ChapterId + end end function this.GetCurChapterId() return curChapterId @@ -117,7 +119,9 @@ function this.GetisShowChapterOpenPopup() return isShowChapterOpenPopup end function this.SetCurChapterLevelId(ChapterLevelId) - curChapterLevelId = ChapterLevelId + if curChapterLevelId < ChapterLevelId then + curChapterLevelId = ChapterLevelId + end end function this.GetCurChapterLevelId() return curChapterLevelId