1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00
dotween-upm-fork/UnityTests.Unity5/Assets/_DOTween Examples/DOTweenAnimationSequence_RewindAndPlay.cs

15 lines
288 B
C#

using UnityEngine;
using DG.Tweening;
public class DOTweenAnimationSequence_RewindAndPlay : MonoBehaviour
{
public DOTweenAnimation dotweenAnimation;
void OnGUI()
{
if (GUILayout.Button("Rewind and Play")) {
dotweenAnimation.DORewind();
dotweenAnimation.DOPlay();
}
}
}