1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00
2015-08-08 23:10:03 +02:00

14 lines
277 B
C#

using UnityEngine;
using System.Collections;
using DG.Tweening;
public class NegativeTimeScale : MonoBehaviour
{
public Transform target;
void Start()
{
Tween t = target.DOMoveX(7, 4).SetRelative().SetLoops(-1, LoopType.Yoyo);
t.OnUpdate(()=> t.timeScale = 1);
}
}