Пример #1
0
        public static LTDescr Move(GOGroup group, string name, Vector3 from, Vector3[] to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None)
        {
            group.SetLocalPosition(name, from, true);
            var tween = LeanTween.move(group.Get(name), to, time);

            tween = SetLastParameters(tween, delay, onCompleteAction, ease);
            return(tween);
        }
Пример #2
0
 public static LTDescr Rotate(GOGroup group, string name, Quaternion from, Quaternion to, float time, float delay = 0.0f, Action onCompleteAction = null, Ease ease = Ease.None)
 {
     return(Rotate(group.Get(name), from, to, time, delay, onCompleteAction, ease));
 }