Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("passport"))
     {
         npc.CheckPassport();
     }
     else if (other.CompareTag("fail"))
     {
         npc.CheckFail();
     }
 }