public void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.tag == "Hole") { Destroy(gameObject); ui.gameOverActivation(); } }