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