1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 01:06:02 +08:00
2015-03-18 19:30:48 +01:00

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);
}
}
}