From bdab3b511d94f6ae3162e958afe6e81c0c777e20 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Fri, 8 Jan 2021 17:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=BD=A6=E8=BF=9F=E6=96=97=E6=B3=95?= =?UTF-8?q?=E3=80=91boss=E4=BD=8D=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua index c7511066e7..58c5f3cce5 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua @@ -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节点显示自定义