Below is the script we are using to try to get a door to open in our game. When the player hits the box collider on the door nothing happens, and the open print never appears in the log. Any help would be greatly appreciated.
function OnTriggerEnter(collision: Collision)
{
switch (collision.gameObject.tag)
{
case “Player” :
animation.play(“dooropen”);
print (“open”);
break;
}
}