Implement limb fixation exam flow
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user