DESKTOP-MMO982B\User 2026-07-13 16:50:28 +08:00
parent 4779fc06be
commit 5fee6b9588
1 changed files with 3 additions and 1 deletions

View File

@ -223,9 +223,11 @@ function this.SetCardSingleData(o,monsterId, _pos)
local live = Util.GetGameObject(o, "Mask/icon"):GetComponent("RawImage")
live.transform.rotation=Vector3.New(0,0,0)
local liveName = GetResourcePath(heroConfig.Painting)
--local liveName = GetResourcePath(heroConfig.Painting)
local liveName = GetResourcePath(heroConfig.Live)
local roleConfig = ConfigManager.GetConfigData(ConfigName.RoleConfig, heroConfig.Id)
local scale = roleConfig.play_liveScale
--local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2], 0)
local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2], 0)
live.texture = CardRendererManager.GetSpineTexture(_pos, liveName, Vector3.one * scale, livePos, true)
live.transform.localScale = Vector3.one