Esempio n. 1
0
 protected override void OnTriggerEnter(Collider other)
 {
     base.OnTriggerEnter(other);
     if (conditionMet)
     {
         objectToCollect.CollectPage(other);
     }
 }
Esempio n. 2
0
 protected override void OnTriggerEnter(Collider other)
 {
     if (dialogIndex < 3 && conditionMet)
     {
         if (BookPages.PagesCollected == 0)
         {
             dialog.SetConditionTrue();
         }
         bookPage.CollectPage(other);
         InitializeText();
         player = other.GetComponent <Player>();
         player.OnEnterDialog(this);
         DisplayDialogBox();
     }
 }