1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00
2018-06-01 16:04:49 +02:00

28 lines
747 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class TempTests : BrainBase
{
public Transform target;
IEnumerator Start()
{
yield return new WaitForSeconds(1);
Sequence s = DOTween.Sequence()
.OnStart(() => Debug.Log("START"))
.Append(target.DOMoveX(2, 1).OnStart(() => Debug.Log("Append X")))
.SetDelay(1)
.Join(target.DOMoveY(2, 1).OnStart(() => Debug.Log("Join y")))
.SetDelay(2)
.OnComplete(()=> Debug.Log("COMPLETE"));
}
}