Beispiel #1
0
        public static ShakeTween Run(GameObject item, float shakeDistance, Vector2 direction, float duration)
        {
            ShakeTween shakeTween = Run(item, shakeDistance, duration);

            shakeTween._direction = direction;
            return(shakeTween);
        }
Beispiel #2
0
        public static ShakeTween Run(GameObject item, float shakeDistance, float duration)
        {
            ShakeTween tween = Create <ShakeTween>(item, duration);

            tween._shakeDistance = shakeDistance;
            tween._phasesCount   = Mathf.Max(10, (int)(PhasesCountForSecond * duration));
            return(tween);
        }
Beispiel #3
0
 public static ShakeTween RunDirection(GameObject gameObject, float kickDistance, Vector2 direction)
 {
     return(ShakeTween.Run(gameObject, kickDistance, direction, KickDuration).SetPhasesCount(2));
 }