1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00
Demigiant b4e9eb9075 Added optional parameter to methods that return a List, so a reusable List can be passed
+ Added DOTweenExtras (only in test project) for Koby
2017-10-28 20:46:20 +02:00

33 lines
1.1 KiB
C#

// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2017/10/28 20:39
// License Copyright (c) Daniele Giardini
using System.Collections;
using DG.Tweening;
using UnityEngine;
namespace _Tests
{
public class TempTests_Extras : MonoBehaviour
{
public Transform target;
IEnumerator Start()
{
target.DOMoveX(2, 2).SetAutoKill(false);
target.DOMoveY(2, 2).SetAutoKill(false);
yield return new WaitForSeconds(1);
Debug.Log("Are all playing forward: " + DOTweenExtras.IsPlayForwardByTarget(target));
Debug.Log("Are all playing backwards: " + DOTweenExtras.IsPlayBackwardsByTarget(target));
Debug.Log("Are all paused: " + DOTweenExtras.IsPausedByTarget(target));
yield return new WaitForSeconds(1.2f);
Debug.Log("Are all playing forward: " + DOTweenExtras.IsPlayForwardByTarget(target));
Debug.Log("Are all playing backwards: " + DOTweenExtras.IsPlayBackwardsByTarget(target));
Debug.Log("Are all paused: " + DOTweenExtras.IsPausedByTarget(target));
}
}
}