add the connections and sendToTest.cs for connecting with the game test

This commit is contained in:
2025-11-03 16:14:30 +08:00
parent 4ebe6183d3
commit 7837c6adf0
22 changed files with 5552 additions and 324 deletions
+8 -1
View File
@@ -116,6 +116,7 @@ public class Note : BaseNote
if (!string.IsNullOrEmpty(judgeResult))
{
InputManager.Instance?.ShowJudgeResult(TrackIndex, judgeResult);
teamUIController.Instance?.OnJudgeResult(judgeResult); // 新增:更新combo计数
}
Judge();
}
@@ -149,7 +150,10 @@ public class Note : BaseNote
if (isJudged) return;
isJudged = true;
Debug.Log($"{keyToPress} Miss");
// InputManager.Instance?.ShowJudgeResult(TrackIndex, "Miss"); // 已在HandlePress中调用
// Ensure UI shows Miss and combo is updated when a note auto-misses
InputManager.Instance?.ShowJudgeResult(TrackIndex, "Miss");
teamUIController.Instance?.OnJudgeResult("Miss");
// InputManager.Instance?.ShowJudgeResult(TrackIndex, "Miss"); // 已在HandlePress中调用 for manual presses
ReturnToPool();
}
@@ -182,6 +186,9 @@ public class Note : BaseNote
// 离开判定区且未判定则判 Miss
if (!inZone && !isJudged)
{
// Show Miss and update combo
InputManager.Instance?.ShowJudgeResult(TrackIndex, "Miss");
teamUIController.Instance?.OnJudgeResult("Miss");
JudgeMiss();
}
}