Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player"))
     {
         _dialogue.Say(_text, false, _alignment);
         if (_onlyOnce)
         {
             Destroy(gameObject);
         }
     }
 }