public override void PlayTween()
 {
     OnTweenerStart.Invoke();
     startPos = target.position;
     target.DOMove(addToOriginal ? startPos + targetPosition : targetPosition, duration).SetEase(ease).SetLoops(loops).onComplete += () => OnTweenerEnd.Invoke();
 }
 public override void PlayTween()
 {
     OnTweenerStart.Invoke();
     startColor = target.color;
     target.DOColor(targetColor, duration).SetEase(ease).SetLoops(loops).onComplete += () => OnTweenerEnd.Invoke();
 }
Пример #3
0
 public override void PlayTween()
 {
     OnTweenerStart.Invoke();
     startScale = target.localScale;
     target.DOScale(addToOriginal ? startScale + targetScale : targetScale, duration).SetEase(ease).SetLoops(loops).onComplete += () => OnTweenerEnd.Invoke();
 }