Esempio 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));
 }
Esempio n. 2
0
 public static Sequence FTJumpRotation(this Actor actor, float time, float strength = 90, int jumps = 10, float randomness = 90)
 {
     return(Vector3FTweener.Jump(() => actor.LocalEulerAngles, (y) => actor.LocalEulerAngles = y, actor.LocalEulerAngles, time, strength, jumps, randomness));
 }
Esempio n. 3
0
 public static Sequence FTJumpScale(this Actor actor, float time, float strength = 2, int jumps = 2, float randomness = 2)
 {
     return(Vector3FTweener.Jump(() => actor.LocalScale, (y) => actor.LocalScale = y, actor.LocalScale, time, strength, jumps, randomness));
 }
Esempio n. 4
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));
 }