From 0015ffaed6689034b6ba88afe6b8c3b209638a43 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Wed, 13 Jan 2021 17:59:12 +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=E8=BD=AE=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Guild/CarDelay/GuildCarDelayMainPanel.lua | 28 ++++--------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua index 161ae20f87..2883088a5b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua @@ -16,8 +16,11 @@ local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1), this.timer = Timer.New() local challengeNum = 0 local lootNum = 0 +<<<<<<< HEAD local isPlayAnim = true local bossNum = 0 +======= +>>>>>>> a064d83bf... 【车迟斗法】boss轮转 --初始化组件(用于子类重写) function GuildCarDelayMainPanel:InitComponent() this.live2dRoot = Util.GetGameObject(self.gameObject, "live2dRoot") @@ -55,13 +58,6 @@ function GuildCarDelayMainPanel:InitComponent() this.RankListPre, nil, Vector2.New(-v2.x*2, -v2.y*2), 1, 1, Vector2.New(50,8)) this.ScrollView.moveTween.MomentumAmount = 1 this.ScrollView.moveTween.Strength = 1 - - bossNum = 0 - for i, v in ConfigPairs(ConfigManager.GetConfig(ConfigName.WorldBossConfig)) do - if v.Id > 0 then - bossNum = bossNum + 1 - end - end end --绑定事件(用于子类重写) @@ -189,9 +185,7 @@ end function this.ShowTitleAllData() curMonsterId = GuildCarDelayManager.bossIndexId curMonsterIdConFig = ConfigManager.GetConfigData(ConfigName.WorldBossConfig,curMonsterId) - --获取上一个boss数据 - local lastMonsterId,lastMonsterIdConFig = this.GetLastBoss(curMonsterId) - Log("curMonsterId:"..curMonsterIdConFig.Boss.." lastMonsterId:"..lastMonsterIdConFig.Boss) + Log("curMonsterId:"..curMonsterIdConFig.Boss) this.name.text = heroConfig[curMonsterIdConFig.Boss].ReadingName this.proImage.sprite=Util.LoadSprite(GetProStrImageByProNum(heroConfig[curMonsterIdConFig.Boss].PropertyName)) curProgress = GuildCarDelayManager.progress @@ -230,8 +224,7 @@ function this.ShowTitleAllData() this.RemainTimeDown(this.timeTextGo,this.timeText,this.timeNumText,GuildCarDelayManager.endTime - GetTimeStamp(),timeText) end if testLiveGO then - poolManager:UnLoadLive(GetResourcePath(heroConfig[lastMonsterIdConFig.Boss].Live), testLiveGO) - poolManager:UnLoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), testLiveGO) + GameObject.DestroyImmediate(testLiveGO) end 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)) @@ -244,17 +237,6 @@ function this.ShowTitleAllData() this.RefrePanelRedPoint() end -function this.GetLastBoss(curBossId) - local lastIndex = 0 - if curBossId == 1 then - lastIndex = bossNum - else - lastIndex = curBossId - 1 - end - local lastMonsterIdConFig = ConfigManager.GetConfigData(ConfigName.WorldBossConfig,lastIndex) - return lastMonsterIdConFig.Boss,lastMonsterIdConFig -end - -- tab节点显示自定义 function this.TabAdapter(tab, index, status) local tabLab = Util.GetGameObject(tab, "Text")