Exemplo n.º 1
0
 public static Sequence FTShakePosition(this Actor actor, float time, float strength = 2, int vibrato = 2, float randomness = 2, bool fade = true)
 {
     return(Vector3FTweener.Shake(() => actor.LocalPosition, (y) => actor.LocalPosition = y, actor.LocalPosition, time, strength, vibrato, randomness, fade));
 }
Exemplo n.º 2
0
 public static Sequence FTShakeRotation(this Actor actor, float time, float strength = 90, int vibrato = 10, float randomness = 90, bool fade = true)
 {
     return(Vector3FTweener.Shake(() => actor.LocalEulerAngles, (y) => actor.LocalEulerAngles = y, actor.LocalEulerAngles, time, strength, vibrato, randomness, fade));
 }