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/PureQuaternionPluginTests.cs

17 lines
401 B
C#

using UnityEngine;
using System.Collections;
using DG.Tweening;
using DG.Tweening.CustomPlugins;
public class PureQuaternionPluginTests : BrainBase
{
public Transform target;
public Vector3 to;
public bool isRelative;
IEnumerator Start()
{
yield return new WaitForSeconds(0.5f);
target.DORotateQuaternion(Quaternion.Euler(to), 3).SetLoops(-1, LoopType.Yoyo).SetRelative(isRelative);
}
}