Implement limb fixation exam flow

This commit is contained in:
yangbear
2026-07-12 20:34:49 +08:00
parent 1d60eebb4f
commit 79e1fbb70b
71 changed files with 65272 additions and 2574 deletions
+11 -1
View File
@@ -145,7 +145,17 @@ public class UIManager : MonoBehaviour
if (_dialogueBubble != null)
{
_dialogueBubble.SetActive(!string.IsNullOrEmpty(text));
bool hasText = !string.IsNullOrEmpty(text);
bool isExam = GameManager.Instance != null && GameManager.Instance.CurrentMode == ExperimentMode.Exam;
bool isExamBubble = _dialogueBubble.transform.Find("step1") != null;
if (!isExam && isExamBubble)
{
_dialogueBubble.SetActive(false);
return;
}
_dialogueBubble.SetActive(hasText);
var txt = _dialogueBubble.GetComponentInChildren<Text>();
if (txt != null) txt.text = text;
}