private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Hazard") { Destroy(collision.gameObject); //some hazard hit the character. facade.GameOver(); } }