1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00
Daniele Giardini ec1756130a - Fixed issues with looping tweens and super-tiny durations
- Allowed DOVirtual.DelayedCall to be set in a loop
2015-03-25 10:32:36 +01:00

17 lines
407 B
C#

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
public class EaseCurveSingle : MonoBehaviour
{
public Transform[] targets;
IEnumerator Start()
{
yield return new WaitForSeconds(1);
targets[0].DOMoveX(6, 1.5f).SetEase(Ease.Linear).SetLoops(2, LoopType.Restart);
targets[1].DOMoveX(6, 1.5f).SetEase(Ease.Linear).SetLoops(2, LoopType.Yoyo);
}
}