1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00

20 lines
383 B
C#

using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Temp : BrainBase
{
public Transform target, follow;
void Start()
{
Tweener tween = target.DOMove(follow.position, 2f)
.SetEase(Ease.OutExpo);
tween.OnUpdate(() =>
{
tween.ChangeEndValue(follow.position, true);
});
}
}