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
@@ -86,6 +86,7 @@ public class ShoseClickHandler : MonoBehaviour
if (Time.time - _lastClickTime < 0.3f) return;
_lastClickTime = Time.time;
if (_clicked) return;
InteractionClickGuard.MarkHandled();
_clicked = true;
Debug.Log("[ShoseClick] ★ 被点击 ★");
ActionHistory.Push(ActionHistory.ActionType.Shose, this);
@@ -139,8 +140,26 @@ public class ShoseClickHandler : MonoBehaviour
if (uiMgr != null)
{
uiMgr.ShowVideo("bandage_demo.mp4");
uiMgr.ShowTip(GetNextTipText());
}
}
private string GetNextTipText()
{
bool isExam = GameManager.Instance != null && GameManager.Instance.CurrentMode == ExperimentMode.Exam;
bool isSplint = GameManager.Instance != null && GameManager.Instance.CurrentFixationMethod == FixationMethod.SplintFixation;
if (isExam)
{
return isSplint
? "请阅读考核弹窗并选择固定带宽度,随后按提示预置四条固定带。"
: "请阅读考核弹窗并选择带子宽度,随后按提示由远端到近端摆放绑带。";
}
return isSplint
? "下一步:按由脚踝到大腿的顺序,依次点击 4 个蓝色绑带点预置固定带。"
: "下一步:按由脚踝到大腿的顺序,依次点击 4 个蓝色绑带点摆放绑带。";
}
public void ResetState()
{