void OnCollisionEnter(Collision col) { if (col.gameObject.tag == "Obstacle") { gameObject.SetActive(false); isDead = true; deathMenu.ToggleEndMenu(); pauseScript.buttonToggleOff(); scoreScript.TurnScoreOff(); } }