Implement limb fixation exam flow
This commit is contained in:
@@ -39,7 +39,8 @@ public class Point2ClickHandler : MonoBehaviour
|
||||
|
||||
_clicked = false;
|
||||
StopAllCoroutines();
|
||||
StartCoroutine(BlinkOutline());
|
||||
bool isExam = GameManager.Instance != null && GameManager.Instance.CurrentMode == ExperimentMode.Exam;
|
||||
if (!isExam) { StartCoroutine(BlinkOutline()); }
|
||||
}
|
||||
|
||||
System.Collections.IEnumerator BlinkOutline()
|
||||
@@ -64,6 +65,7 @@ public class Point2ClickHandler : MonoBehaviour
|
||||
|
||||
Debug.Log("[Point2Click] ★ 被点击 ★");
|
||||
ActionHistory.Push(ActionHistory.ActionType.Point2, this);
|
||||
var examMgr = FindObjectOfType<ExamFlowManager>(); if (examMgr != null) examMgr.OnObjectClicked(this);
|
||||
|
||||
StopAllCoroutines();
|
||||
if (_meshRenderer != null) _meshRenderer.enabled = false;
|
||||
@@ -126,7 +128,8 @@ public class Point2ClickHandler : MonoBehaviour
|
||||
|
||||
StopAllCoroutines();
|
||||
gameObject.SetActive(startBlink);
|
||||
if (startBlink && isActiveAndEnabled)
|
||||
bool isExam = GameManager.Instance != null && GameManager.Instance.CurrentMode == ExperimentMode.Exam;
|
||||
if (startBlink && isActiveAndEnabled && !isExam)
|
||||
{
|
||||
StartCoroutine(BlinkOutline());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user