Beispiel #1
0
 void OnTriggerEnter(Collider other)
 {
     Debug.Log("Trap Activated");
     if (other.CompareTag("Player") || other.CompareTag("Monster"))
     {
         trap.Activate();
     }
 }