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