void Update() { UpdateScreenFX(); if (game.IsScreenFXDisabled()) { return; } if ( clockManager.ClockTimeState == Script_Clock.TimeStates.None || clockManager.ClockState == Script_Clock.States.Done || !HUDManager.IsClockShowing() || Const_Dev.IsTrailerMode ) { return; } timer -= Time.unscaledDeltaTime; if (timer <= 0) { if (!isScreenShaking) { ShakeScreen(); } timer = currentInterval; } }