void OnTrigerEnter (Collider other) {
if (other.tag == “player”) {
Destroy(other.gameObject);
}
}
void OnTrigerEnter (Collider other) {
if (other.tag == “player”) {
Destroy(other.gameObject);
}
}
You have misspelled OnTriggerEnter.
You wrote OnTrigerEnter
thanx bro