protected void OnInteractPressed() { if (!Character.m_MovementModel.IsInAnimation() && !DialogeBox.isShowingBox()) { Character.m_InteractionModel.OnInteract(); } }
void Start() { Instance = this; Visuals.SetActive(false); TextObject.enabled = false; NextIcon.SetActive(false); }
void Update() { if (gotTriggered) { if (!DialogeBox.isShowingBox()) { finished = true; } } }
public override void OnInteract() { if (TextToShow != "") { DialogeBox.Show(TextToShow, false, Freeze); } else if (alternateText.text != "") { DialogeBox.Show(alternateText.text, true, Freeze); } }
public override void Triggered() { if (text != "") { DialogeBox.Show(text, false, Freeze); } else { DialogeBox.Show(asset.text, true, Freeze); } base.Triggered(); }