1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 09:46:04 +08:00
2020-01-17 00:11:15 +09: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);
}
}