Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
 private bool ValidateShake(GameCameraShakerSettingsComponent settings, CameraShakerConfigComponent cameraShakerConfig) =>
 settings.Enabled && cameraShakerConfig.Enabled;