Question by
helios1988 · Mar 29, 2017 at 11:43 PM ·
colliderontriggerenter
whats wrong with this code
void OnTrigerEnter (Collider other) {
if (other.tag == "player") {
Destroy(other.gameObject);
}
}
Comment
Answer by RonnieThePotatoDEV · Mar 30, 2017 at 12:58 AM
You have misspelled OnTriggerEnter. You wrote OnTrigerEnter :)