protected void OnInteractPressed()
 {
     if (!Character.m_MovementModel.IsInAnimation() && !DialogeBox.isShowingBox())
     {
         Character.m_InteractionModel.OnInteract();
     }
 }
Esempio n. 2
0
    void Start()
    {
        Instance = this;

        Visuals.SetActive(false);
        TextObject.enabled = false;
        NextIcon.SetActive(false);
    }
 void Update()
 {
     if (gotTriggered)
     {
         if (!DialogeBox.isShowingBox())
         {
             finished = true;
         }
     }
 }
Esempio n. 4
0
 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();
 }