mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 01:06:02 +08:00
23 lines
411 B
C#
23 lines
411 B
C#
using DG.Tweening;
|
|
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class TweenParmsBrain : BrainBase
|
|
{
|
|
public Transform[] ts;
|
|
|
|
IEnumerator Start()
|
|
{
|
|
yield return new WaitForSeconds(0.5f);
|
|
|
|
TweenParams tp = new TweenParams()
|
|
.SetRelative()
|
|
// .SetSpeedBased()
|
|
.SetEase(Ease.OutQuint)
|
|
.SetLoops(-1, LoopType.Yoyo);
|
|
|
|
foreach (Transform t in ts) {
|
|
t.DOMoveY(2, 1).SetAs(tp);
|
|
}
|
|
}
|
|
} |