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,"name"):GetComponent("Text").text = GetLanguageStrById(this.oneHeroData.ReadingName)
|
||||||
-- Util.GetGameObject(self.oneLihuiInfo,"pro"):GetComponent("Image").sprite = Util.LoadSprite(GetProStrImageByProNum(this.oneHeroData.PropertyName))
|
-- Util.GetGameObject(self.oneLihuiInfo,"pro"):GetComponent("Image").sprite = Util.LoadSprite(GetProStrImageByProNum(this.oneHeroData.PropertyName))
|
||||||
|
SetHeroData(GetHeroId())
|
||||||
thread = coroutine.start(function ()
|
--随机英雄
|
||||||
for i = 1, 10, 0 do
|
--thread = coroutine.start(function ()
|
||||||
SetHeroData(GetHeroId())
|
--for i = 1, 10, 0 do
|
||||||
end
|
--SetHeroData(GetHeroId())
|
||||||
end)
|
--end
|
||||||
|
--end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function SetHeroData(heroId)
|
function SetHeroData(heroId)
|
||||||
|
@ -170,8 +171,9 @@ function SetHeroData(heroId)
|
||||||
this.pro.sprite = Util.LoadSprite(GetProStrImageByProNum(this.heroData.PropertyName))
|
this.pro.sprite = Util.LoadSprite(GetProStrImageByProNum(this.heroData.PropertyName))
|
||||||
|
|
||||||
this.liveNode = LoadHerolive(this.heroData, this.lihui.transform)
|
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 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)
|
local endV3 = Vector3.New(this.heroData.Position[1], this.heroData.Position[2],0)
|
||||||
|
|
||||||
|
@ -207,6 +209,8 @@ function SetHeroData(heroId)
|
||||||
endV3,
|
endV3,
|
||||||
0.3
|
0.3
|
||||||
):SetEase(Ease.InQuad)
|
):SetEase(Ease.InQuad)
|
||||||
|
]]
|
||||||
|
|
||||||
coroutine.wait(0.3)
|
coroutine.wait(0.3)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue