From b9c3e85d37b9c5ab9731945e190c88b9d61f03ee Mon Sep 17 00:00:00 2001 From: Hugo Pezziardi Date: Mon, 16 Sep 2024 13:21:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20(GEK):=20Reduce=20DanceFreeze=20?= =?UTF-8?q?freezing=20time=20in=20auto=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Specialized/DanceFreeze/DanceFreezeView+PlayerView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/GameEngineKit/Sources/Exercises/Specialized/DanceFreeze/DanceFreezeView+PlayerView.swift b/Modules/GameEngineKit/Sources/Exercises/Specialized/DanceFreeze/DanceFreezeView+PlayerView.swift index cab3279013..2cb1b804ea 100644 --- a/Modules/GameEngineKit/Sources/Exercises/Specialized/DanceFreeze/DanceFreezeView+PlayerView.swift +++ b/Modules/GameEngineKit/Sources/Exercises/Specialized/DanceFreeze/DanceFreezeView+PlayerView.swift @@ -50,7 +50,7 @@ extension DanceFreezeView { func randomSwitch() { if case .completed = self.viewModel.exercicesSharedData.state { return } if self.viewModel.progress < 1.0 { - let rand = Double.random(in: 2..<10) + let rand = Double.random(in: 1..<(self.viewModel.isDancing ? 10 : 3)) DispatchQueue.main.asyncAfter(deadline: .now() + rand) { if case .completed = self.viewModel.exercicesSharedData.state { return }