Hello, I’m having a problem with box colliders. I want the sword, which is tagged as weapon and has a box collider to trigger the player’s box collider and script upon entering. The player’s collider and script is looking for a weapon tag upon entering and printing a debug log saying working. I’ve followed brackey’s tutorial for getting a door working and tried to reverse engineer that. Can anyone point me towards what I’m doing wrong?
#pragma strict
function Update ()
{
}
function OnTriggerEnter (theCollider : Collider)
{
if (theCollider.tag == “Weapon”)
{
Debug.Log(“Working”);
}
}
`