void Die() { //SceneManager.LoadScene() audioplayer.DeathSound(); Camera.main.transform.SetParent(null, true); dead = true; GetComponent <PlayerMovement>().enabled = false; GetComponent <Shoot>().enabled = false; GetComponent <Rigidbody2D>().simulated = false; StartCoroutine(FadeToBlack()); deathScreen.transform.SetParent(null, true); }