【车迟斗法】boss位置调整

dev_chengFeng
ZhangBiao 2021-01-08 17:18:02 +08:00 committed by zhangqiang
parent d45aae1c64
commit bdab3b511d
1 changed files with 10 additions and 1 deletions

View File

@ -179,6 +179,7 @@ end
function this.ShowTitleAllData()
curMonsterId = GuildCarDelayManager.bossIndexId
curMonsterIdConFig = ConfigManager.GetConfigData(ConfigName.WorldBossConfig,curMonsterId)
Log("BossId:"..curMonsterIdConFig.Boss)
this.name.text = heroConfig[curMonsterIdConFig.Boss].ReadingName
this.proImage.sprite=Util.LoadSprite(GetProStrImageByProNum(heroConfig[curMonsterIdConFig.Boss].PropertyName))
curProgress = GuildCarDelayManager.progress
@ -219,7 +220,15 @@ function this.ShowTitleAllData()
if testLiveGO then
poolManager:UnLoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), testLiveGO)
end
testLiveGO = poolManager:LoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), this.live2dRoot.transform, Vector3.one*heroConfig[curMonsterIdConFig.Boss].Scale, Vector3.zero)
local pos = heroConfig[curMonsterIdConFig.Boss].Position
testLiveGO = poolManager:LoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), this.live2dRoot.transform, Vector3.one*heroConfig[curMonsterIdConFig.Boss].Scale, Vector3.New(pos[1], pos[2], 0))
if curMonsterIdConFig.Boss == 10023 then--孙悟空太大了特殊处理了
this.live2dRoot.transform.localScale = Vector3.one*0.6
this.live2dRoot.transform.localPosition = Vector3.zero
else
this.live2dRoot.transform.localScale = Vector3.one*0.8
this.live2dRoot.transform.localPosition = Vector3.New(0,170,0)
end
this.RefrePanelRedPoint()
end
-- tab节点显示自定义