diff --git a/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs b/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs index 6368c40..67b67b9 100644 --- a/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs @@ -185,8 +185,8 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope int leftWaving = sportOperate.VerifyLeftWavingAction(humans); if (leftWaving == 5) { + _isCountdownStarted = true; _mainWin.HumanFrameUpdated -= OnHumanFrameUpdated; - //_mainWin.WebcamClient.StopExtract(); // 举左手逻辑,例如结束动画或退出 var newPage = new Home(); diff --git a/Wpf_AiSportsMicrospace/Views/SquatFu/WhackAMole.xaml.cs b/Wpf_AiSportsMicrospace/Views/SquatFu/WhackAMole.xaml.cs index 394b4ba..2846a99 100644 --- a/Wpf_AiSportsMicrospace/Views/SquatFu/WhackAMole.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/SquatFu/WhackAMole.xaml.cs @@ -195,7 +195,6 @@ namespace Views.SquatFu { _isCountdownStarted = true; _mainWin.HumanFrameUpdated -= OnHumanFrameUpdated; - //_mainWin.WebcamClient.StopExtract(); // 举左手逻辑,例如结束动画或退出 var newPage = new Home(); @@ -247,7 +246,7 @@ namespace Views.SquatFu private async void StartCountdown(int start = 3) { - _currentGameState = GameState.Running; + //_currentGameState = GameState.Running; _mainWin.ShowCountDownAnimation();