1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00

27 lines
489 B
C#

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
public class TempPro : MonoBehaviour
{
public DOTweenPath target;
IEnumerator Start()
{
Tween t = this.transform.DOMoveX(2, 2).OnRewind(()=> Debug.Log("Rewind 0"));
yield return new WaitForSeconds(1);
t.Rewind();
// target.GetTween().Rewind();
}
public void OnComplete()
{
Debug.Log("COMPLETE");
}
public void OnRewind()
{
Debug.Log("REWIND");
}
}