主角立绘显示修改

onepiece_demo_arena
wangzhenxing 2023-12-04 17:19:01 +08:00
parent 3bf11cf24b
commit f1746010d1
3 changed files with 6 additions and 6 deletions

View File

@ -36,9 +36,9 @@ function MonsterView:onCreate(go, role, position, root)
end
if role.roleData.id == 20100 then
if role.sex == ROLE_SEX.BOY then
self.livePath = "live2d_npc_boy"
self.livePath = "live2d_caomaolufei"
else
self.livePath = "live2d_npc_girl"
self.livePath = "live2d_namei"
end
-- 确定是主角
self.isMainPlayer = true

View File

@ -54,9 +54,9 @@ function PlayerView:onCreate(go, role, position, root)
if self.roleId == 21061 then
self.skinId = 0
if NameManager.roleSex == ROLE_SEX.BOY then
self.livePath = "live2d_npc_boy"
self.livePath = "live2d_caomaolufei"
else
self.livePath = "live2d_npc_girl"
self.livePath = "live2d_namei"
end
else
local live=HeroConfig[role.roleData.roleId].Live

View File

@ -14,10 +14,10 @@ this.curAreaID = 0
local lastResName
local lastLive2d
--- 男主立绘
this.boyRes = "live2d_npc_boy"
this.boyRes = "live2d_caomaolufei"
--- 女主立绘
this.bitchRes = "live2d_npc_girl"
this.bitchRes = "live2d_namei"
function this.Initialize()