1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 01:36:05 +08:00
2015-03-23 13:17:33 +01:00

16 lines
348 B
C#

using UnityEngine;
using System.Collections;
using DG.Tweening;
public class CombineTweens : MonoBehaviour
{
public Transform target;
IEnumerator Start()
{
yield return new WaitForSeconds(0.6f);
target.DOMixedMoveBy(new Vector3(3, 3, 0), 3);
target.DOMixedMoveBy(new Vector3(-3, 0, 0), 1.5f).SetLoops(2, LoopType.Yoyo);
}
}