1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00
Daniele Giardini e584eca48c no message
2015-03-23 18:26:39 +01:00

23 lines
583 B
C#

using UnityEngine;
using System.Collections;
using DG.Tweening;
public class MixedTweens : BrainBase
{
public Transform target;
IEnumerator Start()
{
yield return new WaitForSeconds(0.6f);
target.DOBlendableMoveBy(new Vector3(3, 3, 0), 3).SetAutoKill(false);
target.DOBlendableMoveBy(new Vector3(-3, 0, 0), 1.5f).SetLoops(2, LoopType.Yoyo).SetAutoKill(false);
}
void OnGUI()
{
if (GUILayout.Button("Toggle Pause")) DOTween.TogglePauseAll();
if (GUILayout.Button("Restart")) DOTween.RestartAll();
if (GUILayout.Button("Flip")) DOTween.FlipAll();
}
}