英雄信息界面修改
(cherry picked from commit a1163cf81b)
parent
d69d283c49
commit
7e67ea5920
|
|
@ -263,9 +263,14 @@ function RoleGetInfoPopup:OnShow()
|
|||
end
|
||||
function this.ShowHeroLive(_heroSConfigData)
|
||||
this.testLiveGO = poolManager:LoadLive(GetResourcePath(_heroSConfigData.Live), this.liveRoot.transform,
|
||||
Vector3.one * _heroSConfigData.Scale*0.7, Vector3.New(_heroSConfigData.PositionView[1], _heroSConfigData.PositionView[2], 0))
|
||||
Vector3.one * _heroSConfigData.Scale*0.7, Vector3.New(_heroSConfigData.Position[1], _heroSConfigData.Position[2], 0))
|
||||
local SkeletonGraphic = this.testLiveGO:GetComponent("SkeletonGraphic")
|
||||
SetHEeroLiveToward(this.testLiveGO,_heroSConfigData.Toward,_heroSConfigData.PositionView)
|
||||
--local position=_heroSConfigData.Position
|
||||
--position[2]=_heroSConfigData.Position[2]-250
|
||||
local pos1={}
|
||||
pos1[1]=_heroSConfigData.Position[1]
|
||||
pos1[2]=_heroSConfigData.Position[2]---250
|
||||
SetHEeroLiveToward(this.testLiveGO,_heroSConfigData.Toward)
|
||||
local idle = function() SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true) end
|
||||
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete + idle
|
||||
poolManager:SetLiveClearCall(GetResourcePath(_heroSConfigData.Live), this.testLiveGO, function ()
|
||||
|
|
|
|||
Loading…
Reference in New Issue