zhibo
parent
2613e662d3
commit
42f824de9b
|
@ -150,12 +150,13 @@ function FirstRechargePanel:OnShow()
|
|||
|
||||
-- Util.GetGameObject(self.oneLihuiInfo,"name"):GetComponent("Text").text = GetLanguageStrById(this.oneHeroData.ReadingName)
|
||||
-- Util.GetGameObject(self.oneLihuiInfo,"pro"):GetComponent("Image").sprite = Util.LoadSprite(GetProStrImageByProNum(this.oneHeroData.PropertyName))
|
||||
|
||||
thread = coroutine.start(function ()
|
||||
for i = 1, 10, 0 do
|
||||
SetHeroData(GetHeroId())
|
||||
end
|
||||
end)
|
||||
SetHeroData(GetHeroId())
|
||||
--随机英雄
|
||||
--thread = coroutine.start(function ()
|
||||
--for i = 1, 10, 0 do
|
||||
--SetHeroData(GetHeroId())
|
||||
--end
|
||||
--end)
|
||||
end
|
||||
|
||||
function SetHeroData(heroId)
|
||||
|
@ -170,8 +171,9 @@ function SetHeroData(heroId)
|
|||
this.pro.sprite = Util.LoadSprite(GetProStrImageByProNum(this.heroData.PropertyName))
|
||||
|
||||
this.liveNode = LoadHerolive(this.heroData, this.lihui.transform)
|
||||
|
||||
local stopV3 = Vector3.New(this.heroData.Position[1], this.heroData.Position[2],0)
|
||||
--随机英雄
|
||||
--[[
|
||||
local stopV3 = Vector3.New(this.heroData.Position[1], this.heroData.Position[2],0)
|
||||
local startV3 = Vector3.New(this.heroData.Position[1], this.heroData.Position[2],0)
|
||||
local endV3 = Vector3.New(this.heroData.Position[1], this.heroData.Position[2],0)
|
||||
|
||||
|
@ -207,6 +209,8 @@ function SetHeroData(heroId)
|
|||
endV3,
|
||||
0.3
|
||||
):SetEase(Ease.InQuad)
|
||||
]]
|
||||
|
||||
coroutine.wait(0.3)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue