Exemple #1
0
    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;
        }
    }
Exemple #2
0
 public override void Start(float intensity, float speed, float decay, Vector2 directon = default)
 {
     classicShake.Start(intensity, speed, decay, direction);
     base.Start(intensity, speed, decay);
 }