修改海贼相关引用

TCX_LongZhu
PC-202302260912\Administrator 2024-11-22 20:05:41 +08:00
parent f58c94a302
commit 8a1a77bd52
1 changed files with 3 additions and 2 deletions

View File

@ -38,9 +38,9 @@ function MonsterView:onCreate(go, role, position, root)
end end
if role.roleData.id == 20100 then if role.roleData.id == 20100 then
if role.sex == ROLE_SEX.BOY then if role.sex == ROLE_SEX.BOY then
self.livePath = "live2d_caomaolufeizhanshi" self.livePath = "10002_show"
else else
self.livePath = "live2d_namei" self.livePath = "10003_show"
end end
-- 确定是主角 -- 确定是主角
self.isMainPlayer = true self.isMainPlayer = true
@ -70,6 +70,7 @@ function MonsterView:onCreate(go, role, position, root)
-- end -- end
-- 人物立绘 -- 人物立绘
LogError("self.livePath==============="..self.livePath)
self.RoleLiveGO = poolManager:LoadLive(self.livePath, self.skillCastRoot.transform.parent, Vector3.one, Vector3.zero) self.RoleLiveGO = poolManager:LoadLive(self.livePath, self.skillCastRoot.transform.parent, Vector3.one, Vector3.zero)
self.RoleLiveGO.transform:SetParent(self.liveRoot.transform) self.RoleLiveGO.transform:SetParent(self.liveRoot.transform)
self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5 self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5