一键上阵修改提交
parent
af30beccd3
commit
e6061c0762
|
|
@ -52,6 +52,17 @@ function this.On_Btn1_Click()
|
||||||
this.root.SetOneKeyGo()
|
this.root.SetOneKeyGo()
|
||||||
end
|
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点击回调事件
|
--- btn1点击回调事件
|
||||||
function this.On_Btn2_Click()
|
function this.On_Btn2_Click()
|
||||||
if not hadClick then
|
if not hadClick then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue