From e6061c0762ffa50e5d9378dfca97b95671300de3 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 31 Dec 2021 11:18:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E4=B8=8A=E9=98=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Formation/View/ExploreFormation.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/View/ExploreFormation.lua b/Assets/ManagedResources/~Lua/Modules/Formation/View/ExploreFormation.lua index 9f28be4db6..40b32b5d1c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/View/ExploreFormation.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/View/ExploreFormation.lua @@ -52,6 +52,17 @@ function this.On_Btn1_Click() this.root.SetOneKeyGo() end +function this.GetOneKeyUpHeroList() + local heros = HeroManager.GetAllHeroList() + local heroDatas = {} + for k,v in pairs(heros) do + if this.GetHeroTeam(v.dynamicId) == 0 or this.GetHeroTeam(v.dynamicId) == 100 then + table.insert(heroDatas,v) + end + end + return heroDatas +end + --- btn1点击回调事件 function this.On_Btn2_Click() if not hadClick then