diff --git a/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs b/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs index 5af4ff7..6c4cdb3 100644 --- a/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/JumpRope/GroupJumpRope.xaml.cs @@ -350,10 +350,9 @@ namespace Wpf_AiSportsMicrospace.Views private void UpdateCircleCounts(List humans) { - lock (_updateLock) - { + double radiusNormX = 0.07; - double radiusNormY = 0.07; + double radiusNormY = 0.14; for (int i = 0; i < circlePositions.Count; i++) { @@ -390,12 +389,14 @@ namespace Wpf_AiSportsMicrospace.Views // 根据是否有人和跳绳数字判断状态 bool hasHuman = humanInCircle != null; + lock (_updateLock) + { userList[i].ImageState = GetJumpState(i, hasHuman); - - // 推送计数 - if (hasHuman) - sports[i].Pushing(humanInCircle); } + + // 推送计数 + if (hasHuman) + sports[i].Pushing(humanInCircle); } } @@ -426,7 +427,7 @@ namespace Wpf_AiSportsMicrospace.Views // 数字未变化,判断是否超过 2 秒 double elapsed = (DateTime.Now - lastChangeTime).TotalSeconds; - if (elapsed >= 3) + if (elapsed >= 2) { // 超过 2 秒未变化 → 停止 _jumpStatus[circleIndex] = (currentNumber, lastChangeTime, "1");