1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00
dotween-upm-fork/UnityTests.Unity5/Assets/_Tests/CustomYieldInstructions.cs

18 lines
382 B
C#

using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
public class CustomYieldInstructions : BrainBase
{
public Transform target;
IEnumerator Start()
{
yield return new WaitForSeconds(1);
Debug.Log("01");
yield return target.DOMoveX(2, 1).WaitForCompletion(true);
Debug.Log("02");
}
}