Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
AnibalKLC's avatar
AnibalKLC
Honored Guest
8 years ago

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;
public class AlarmaArea : MonoBehaviour {

    public GameObject areaSonido;

    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Player")
        {
            areaSonido.SetActive(true);
        }
    }

}