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