public void ShakeHUDOnFalling(GameCameraShakerSettingsComponent settings, CameraShakerConfigComponent config) { if (this.ValidateShake(settings, config)) { CameraShakeInstance instance = this.shaker.ShakeOnce(config.Magnitude, config.Roughness, config.FadeInTime, config.FadeOutTime, new Vector3(config.PosInfluenceX, config.PosInfluenceY, config.PosInfluenceZ), new Vector3(config.RotInfluenceX, config.RotInfluenceY, config.RotInfluenceZ)); } }
private bool ValidateShake(GameCameraShakerSettingsComponent settings, CameraShakerConfigComponent cameraShakerConfig) => settings.Enabled && cameraShakerConfig.Enabled;