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

25 lines
538 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using DG.Tweening;
using DG.Tweening.Core;
using UnityEngine;
using UnityEngine.UI;
public class TempTests : BrainBase
{
public Transform target;
void Start()
{
float delay = 0.15f;
Sequence seq = DOTween.Sequence();
seq.Insert(delay, target.DOMoveX(0.5f, 0.5f).OnComplete(() => {
Debug.Log("Doesn't work");
}));
seq.OnComplete(()=> Debug.Log("Works"));
target.DORotate (new Vector3 (1, 2, 1), 2);
}
}