十绝阵
parent
86701e3a78
commit
81a363236c
|
@ -243,10 +243,10 @@ function this.SetCardSingleData(o, heroId, _pos, heroData)
|
||||||
rage.gameObject:SetActive(false)
|
rage.gameObject:SetActive(false)
|
||||||
local live = Util.GetGameObject(o, "Mask/icon"):GetComponent("RawImage")
|
local live = Util.GetGameObject(o, "Mask/icon"):GetComponent("RawImage")
|
||||||
local config = heroConfig[heroId]
|
local config = heroConfig[heroId]
|
||||||
local liveName = GetResourcePath(config.Live)
|
local liveName = GetResourcePath(config.Painting)
|
||||||
local roleConfig = ConfigManager.GetConfigData(ConfigName.RoleConfig, heroId)
|
local roleConfig = ConfigManager.GetConfigData(ConfigName.RoleConfig, heroId)
|
||||||
local scale = roleConfig.play_liveScale
|
local scale = roleConfig.play_liveScale
|
||||||
local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2]+200, 0)
|
local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2], 0)
|
||||||
live.texture = CardRendererManager.GetSpineTexture(_pos, liveName, Vector3.one * scale, livePos, true)
|
live.texture = CardRendererManager.GetSpineTexture(_pos, liveName, Vector3.one * scale, livePos, true)
|
||||||
live.transform.localScale = Vector3.one
|
live.transform.localScale = Vector3.one
|
||||||
live.transform.localPosition = Vector3.zero
|
live.transform.localPosition = Vector3.zero
|
||||||
|
|
Loading…
Reference in New Issue