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

16 lines
304 B
C#

using UnityEngine;
using System.Collections;
using DG.Tweening;
public class ShakeInverse : MonoBehaviour
{
public Transform trans;
IEnumerator Start()
{
yield return new WaitForSeconds(0.6f);
Tween t = trans.DOShakePosition(4, 2).SetAutoKill(false);
t.Complete();
t.PlayBackwards();
}
}