Improve exam flow and WebGL build
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user