public void Shake(float intensity, float speed, float decay, Vector2 direction = default) { switch (ShakeFunction) { case ShakeType.Classic: classic.Start(intensity, speed, decay, direction); break; case ShakeType.Jonasson: jonasson.Start(intensity, speed, decay); break; } }
public override void Start(float intensity, float speed, float decay, Vector2 directon = default) { classicShake.Start(intensity, speed, decay, direction); base.Start(intensity, speed, decay); }