Пример #1
0
 /// <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);
 }
Пример #2
0
 void OnEnable()
 {
     _preset = (ShakePreset)target;
 }