protected override void OnTriggerEnter(Collider other) { base.OnTriggerEnter(other); if (conditionMet) { objectToCollect.CollectPage(other); } }
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(); } }