mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
20 lines
383 B
C#
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);
|
|
});
|
|
}
|
|
} |