I have some issues with OnTriggerEnter
I have some issues with OnTriggerEnter and acivate a Area sound. My Scripts no detect the collider and no activate de sound when i was enter in the area.
-sorry for my english.
Script;
-sorry for my english.
Script;
public class AlarmaArea : MonoBehaviour {
public GameObject areaSonido;
void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "Player")
{
areaSonido.SetActive(true);
}
}
}
