修改灵兽代码

onepiece_demo_arena
xiejun 2023-08-30 21:31:29 +08:00
parent 87c1193f8b
commit f42141a40e
1 changed files with 3 additions and 3 deletions

View File

@ -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)