mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 17:26:03 +08:00
15 lines
288 B
C#
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();
|
|
}
|
|
}
|
|
} |