/** * Start a time warp. */ private void TimeWarp() { // Can't time warp while time is already slowed down. if (timeWarpAvailable && !gameManager.GetTimeWarpEnabled()) { timeWarpAvailable = false; handsAnimator.SetTrigger("TimeWarp"); levelStats.StartTimeWarpGaugeAnimation(); soundManager.PlayTimeWarpSound(); soundManager.SetHighPassFilterEnabled(true); gameManager.SetTimeWarpEnabled(true); timeWarpCounter = timeWarpLength; rippleCameraEffect.SetNewRipplePosition(new Vector2(Screen.width / 2, (Screen.height / 2) + 35f)); } }