/// <summary> /// Carries out procedure to kill player. /// </summary> private void Kill() { killInitiated = false; isEnabled = true; Fadeout.color = Color.black; if (this.gameObject.tag == "PlayerOne" || this.gameObject.tag == "PlayerTwo") { transform.position = checkpoint.Position; transform.localEulerAngles = checkpoint.Orientation; playerSlow.ResetSlow(); firstPersonMovement.ResetState(); playerHealth.ResetHP(); } }