From 3b36d944c90bc50c73d8a3279ae8afd390b51b7d Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 2 Jun 2023 09:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89boss=E5=81=9C=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/battle/battle_ui.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lua/app/ui/battle/battle_ui.lua b/lua/app/ui/battle/battle_ui.lua index b792f7ff..8f4e7328 100644 --- a/lua/app/ui/battle/battle_ui.lua +++ b/lua/app/ui/battle/battle_ui.lua @@ -2061,11 +2061,6 @@ function BattleUI:showBossEnterAni(bornTime, bossName, monsterComp, callback) self.bossName:setAnchoredPositionX(-756) self.bossEnterNodeCanvasGroup.alpha = 0 monsterComp:getBaseObject():setLocalPosition(DEFAULT_X, 0, 0) - local keyFrameTimes = self.bossEnterImg:getAnimationKeyFrameTime("idle") - local keyFrameTime = 0 - if keyFrameTimes then - keyFrameTime = keyFrameTimes[1] or 0 - end if self.bossEnterAniSeq then self.bossEnterAniSeq:Kill() self.bossEnterAniSeq = nil @@ -2092,16 +2087,6 @@ function BattleUI:showBossEnterAni(bornTime, bossName, monsterComp, callback) self.battleController:showBuffTips(GConst.BattleConst.SIDE_DEF, true) self.bossEnterNodeAnimator.enabled = false end) - - if keyFrameTime > 0 then - local addTime = 1 - self.bossEnterAniSeq:InsertCallback(keyFrameTime + 0.2, function() - self.battleController:setTimeScale(0) - end) - self.bossEnterAniSeq:InsertCallback(keyFrameTime + 0.2 + addTime, function() - self.battleController:setTimeScale(DataManager.BattleData:getTimeScale()) - end) - end end function BattleUI:clear()