public void DeathStopRewind() { if (isRewinding) { isRewinding = false; TimeBody[] replays = Resources.FindObjectsOfTypeAll(typeof(TimeBody)) as TimeBody[]; for (int i = 0; i < replays.Length; i++) { replays[i].StopRewind(); } //This makes it possible again for Tim to use its powers powerTime = Mathf.Max(powerGauge.value - 0.01f, 0.5f); Volume[] volume = Resources.FindObjectsOfTypeAll(typeof(Volume)) as Volume[]; if (volume.Length > 0 && volume[0].profile.TryGet <ColorAdjustments>(out ColorAdjustments colorAdjustments)) { colorAdjustments.saturation.overrideState = true; LeanTween.value(-70f, 0f, 0.3f).setOnUpdate((float val) => { colorAdjustments.saturation.value = val; }); AudioSource source = persistantHandler.GetComponent <AudioSource>(); AudioSource soundSource = shoutHandler.GetComponent <AudioSource>(); float characterPitch = new Character().Death().pitch; LeanTween.value(-0.9f, 1f, 0.3f).setOnUpdate((float val) => { source.pitch = val; soundSource.pitch = val * characterPitch; }); } Debug.Log("disableEye : " + (int)powerGauge.value + 1); emotions.disableEye((int)powerGauge.value + 1); } }