一键上阵修改提交

dev_chengFeng
jiaoyangna 2021-12-31 11:18:20 +08:00
parent af30beccd3
commit e6061c0762
1 changed files with 11 additions and 0 deletions

View File

@ -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