public void die() { dying = true; this.GetComponent <PlayerController2D>().enabled = false; AutoFade.FadeOut(Color.black, restartCurrentScene); }