修改灵兽代码
parent
87c1193f8b
commit
f42141a40e
|
@ -110,8 +110,8 @@ function MonsterView:onCreate(go, role, position, root)
|
|||
|
||||
-- casting技能立绘
|
||||
self.RoleLiveGO2=nil
|
||||
self.livePath2=GetResourcePath(HeroConfig[role.roleData.roleId].Painting)
|
||||
self.RoleLiveGO2 = poolManager:LoadLive(self.livePath2, self.skillCastRoot.gameObject.transform.parent, Vector3.one, Vector3.zero)
|
||||
-- self.livePath2=GetResourcePath(HeroConfig[role.roleData.roleId].Painting)
|
||||
self.RoleLiveGO2 = poolManager:LoadLive(self.livePath, self.skillCastRoot.gameObject.transform.parent, Vector3.one, Vector3.zero)
|
||||
self.RoleLiveGO2.transform:SetParent(self.skillCastRoot.gameObject.transform)
|
||||
|
||||
local offset = self.camp == 0 and self.offset or self.outOffset
|
||||
|
@ -321,7 +321,7 @@ function MonsterView:onDispose()
|
|||
Util.SetSpineGray(self.RoleLiveGOGraphic2, false)
|
||||
Util.SetColor(self.RoleLiveGOGraphic2, Color.New(1, 1, 1, 1))
|
||||
self.RoleLiveGOGraphic2.freeze = false
|
||||
poolManager:UnLoadLive(self.livePath2, self.RoleLiveGO2)
|
||||
--poolManager:UnLoadLive(self.livePath2, self.RoleLiveGO2)
|
||||
poolManager:UnLoadLive(self.livePath, self.RoleLiveGO)
|
||||
-- poolManager:UnLoadLive(self.combat2.CloseRangeHit, self.RoleSkillLiveGo2)
|
||||
-- poolManager:UnLoadLive(self.combat.CloseRangeHit, self.RoleSkillLiveGo)
|
||||
|
|
Loading…
Reference in New Issue