void Die() { if (!dead) { //fade out and reset the current scene. gm.playerWin = false; gm.roundOver = true; Debug.Log("you are dead."); transform.Rotate(0, 0, 90); AudioManager.singleton.PlaySFX("death"); feet.MuteFeet(); StartCoroutine(pEffects.FadeToDeath()); dead = true; } }