Improve exam flow and WebGL build

This commit is contained in:
yangbear
2026-07-17 05:42:52 +08:00
parent 9b4690d396
commit bd76dfd9ec
34 changed files with 89955 additions and 8244 deletions
+12
View File
@@ -201,6 +201,18 @@ public class StepManager : MonoBehaviour
return true;
}
}
var splintObjects = Object.FindObjectsOfType<SplintObjectClickHandler>();
foreach (var h in splintObjects)
{
Debug.Log($"[StepManager] 检查 SplintObject: {h.name}, active={h.gameObject.activeInHierarchy}, CanBeClicked={h.CanBeClicked()}");
if (h.gameObject.activeInHierarchy && h.CanBeClicked())
{
Debug.LogError($"====== StepManager: 模拟点击了 {h.name} ======");
h.PerformClick();
return true;
}
}
var pings = Object.FindObjectsOfType<PingClickHandler>();
System.Array.Sort(pings, (a, b) => string.Compare(b.name, a.name));