mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 09:16:02 +08:00
19 lines
305 B
C#
19 lines
305 B
C#
using DG.Tweening;
|
|
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class OnCompleteCreateNewTween : BrainBase
|
|
{
|
|
public Transform target;
|
|
|
|
void Start()
|
|
{
|
|
MakeTween();
|
|
}
|
|
|
|
void MakeTween()
|
|
{
|
|
target.position = Vector3.zero;
|
|
target.DOMoveX(3, 0.1f).SetRelative().OnComplete(MakeTween);
|
|
}
|
|
} |