1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 01:36:05 +08:00
2015-03-18 19:30:48 +01:00

18 lines
345 B
C#

using DG.Tweening;
using UnityEngine;
using System.Collections;
public class SequenceIncremental : BrainBase
{
public Transform target;
void Start()
{
DOTween.Sequence()
.Append(target.DORotate(new Vector3(0, 45, 0), 1)
.SetLoops(2, LoopType.Incremental)
)
.AppendInterval(0.5f)
.SetLoops(3, LoopType.Incremental);
}
}