// Event function when interacting with other game objects void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag == "Slytherin") { Respawn(); score.SlytherinPoint(); } else if (collision.gameObject.tag == "Gryffindor") { Respawn(); score.GryffindorPoint(); } }