I have scripted this:
function OnControllerColliderHit (hit : ControllerColliderHit) {
if (hit.gameObject.name == "Key")
{
Destroy(GameObject.FindWithTag("destruction"));
}
}
The problem is that I have two objects tagged as “destruction” and only the Key is destroyed. Anyone has the solution?