/// <summary>Shakes the camera using the values defined on the provided preset</summary> /// <param name="preset">The shake preset</param> public void Shake(ShakePreset preset) { Shake(preset.Duration, preset.Strength, preset.Vibrato, preset.Randomness, preset.UseRandomInitialAngle ? -1 : preset.InitialAngle, preset.Rotation, preset.Smoothness, preset.IgnoreTimeScale); }
void OnEnable() { _preset = (ShakePreset)target; }