// Methods to be invoked by other functions void Respawn() { ToggleRenderer(true); if (isLocalPlayer) { thirdPersonController.ResetCamera(); thirdPersonController.m_Dying = false; thirdPersonController.m_Revive = true; thirdPersonController.Invoke("PlayReviveSound", 0.7f); ToggleControls(true); Health = 500; Invoke("StopReviving", 2.1f); } }