【灵兽】战斗内灵兽头像显示添加
parent
343237ae6d
commit
00f262d2f4
|
|
@ -42114,7 +42114,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 326}
|
||||
m_AnchoredPosition: {x: -20, y: 326}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &-1483527777593229461
|
||||
|
|
@ -43526,7 +43526,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 308563046}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 211998745}
|
||||
- {fileID: 1556511316}
|
||||
|
|
@ -57202,7 +57202,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 384472871752434339}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.9012616, y: 0.9012616, z: 0.9999204}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 0.9999204}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 9038224908856467170}
|
||||
m_RootOrder: 1
|
||||
|
|
@ -62218,7 +62218,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 546338618009417567}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.9012616, y: 0.9012616, z: 0.9999204}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 0.9999204}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 9038224908856467170}
|
||||
m_RootOrder: 2
|
||||
|
|
@ -63235,7 +63235,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 1481445538919777889}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.9012616, y: 0.9012616, z: 0.9999204}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 0.9999204}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 9038224908856467170}
|
||||
m_RootOrder: 5
|
||||
|
|
@ -73709,7 +73709,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 2066122784095086558}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4151010342984944770}
|
||||
m_RootOrder: 4
|
||||
|
|
@ -73819,7 +73819,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 2122781850321423487}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4151010342984944770}
|
||||
m_RootOrder: 5
|
||||
|
|
@ -73928,7 +73928,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 2298643320929850683}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4151010342984944770}
|
||||
m_RootOrder: 2
|
||||
|
|
@ -85830,7 +85830,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 4747825486462881749}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4151010342984944770}
|
||||
m_RootOrder: 3
|
||||
|
|
@ -86244,7 +86244,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -754}
|
||||
m_AnchoredPosition: {x: -20, y: -754}
|
||||
m_SizeDelta: {x: 1100, y: 202.5}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1048028496800183147
|
||||
|
|
@ -86837,7 +86837,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 5171441242155204879}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4151010342984944770}
|
||||
m_RootOrder: 0
|
||||
|
|
@ -102736,7 +102736,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 6553706575976016896}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4151010342984944770}
|
||||
m_RootOrder: 1
|
||||
|
|
@ -103311,7 +103311,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 7113811085201439738}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.9012616, y: 0.9012616, z: 0.9999204}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 0.9999204}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 9038224908856467170}
|
||||
m_RootOrder: 3
|
||||
|
|
@ -114966,7 +114966,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 8478956288363122827}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.9012616, y: 0.9012616, z: 0.9999204}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 0.9999204}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 9038224908856467170}
|
||||
m_RootOrder: 0
|
||||
|
|
@ -120025,7 +120025,7 @@ RectTransform:
|
|||
m_GameObject: {fileID: 8744639478866735804}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.9012616, y: 0.9012616, z: 0.9999204}
|
||||
m_LocalScale: {x: 0.7, y: 0.7, z: 0.9999204}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 9038224908856467170}
|
||||
m_RootOrder: 4
|
||||
|
|
|
|||
|
|
@ -24,10 +24,9 @@ function MonsterView:onCreate(go, role, position, root)
|
|||
-- 创建技能播放器
|
||||
self.castingEfectNode = role.camp == 0 and self.RootPanel.mySkillCast or self.RootPanel.enemySkillCast
|
||||
self.castingNameNode = Util.GetGameObject(self.castingEfectNode, role.camp == 0 and "TongYong_Casting_Xia/DongHua/MingZi" or "TongYong_Casting_Shang/DongHua/MingZi")
|
||||
|
||||
Log(role.camp .. "casting name = ")
|
||||
self.skillCastRoot = role.camp == 0 and self.RootPanel.mySkillCastRoot or self.RootPanel.enemySkillCastRoot
|
||||
self.liveRoot = role.camp == 0 and Util.GetGameObject(self.RootPanel.gameObject, "playerMonster/live") or Util.GetGameObject(self.RootPanel.gameObject, "enemyMonster/live")
|
||||
self.icon = Util.GetGameObject(go, "icon"):GetComponent("Image")
|
||||
|
||||
-- 获取数据
|
||||
self.livePath = GetResourcePath(SpiritAnimal[role.roleData.id].Live)
|
||||
|
|
@ -38,9 +37,9 @@ function MonsterView:onCreate(go, role, position, root)
|
|||
self.spAtkTime = SpiritAnimal[role.roleData.id].CastingSkills/1000
|
||||
self.atkSoundTime = SpiritAnimal[role.roleData.id].CastingAudio/1000
|
||||
self.attackSound = SpiritAnimal[role.roleData.id].sond
|
||||
|
||||
|
||||
self.icon.sprite = Util.LoadSprite(GetResourcePath(SpiritAnimal[role.roleData.id].Icon))
|
||||
-- 人物立绘
|
||||
|
||||
self.RoleLiveGO = poolManager:LoadLive(self.livePath, go.transform.parent, Vector3.one, Vector3.zero)
|
||||
self.RoleLiveGO.transform:SetParent(self.liveRoot.transform)
|
||||
self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
|
||||
|
|
|
|||
Loading…
Reference in New Issue