1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00
Daniele Giardini b01003f3e0 - Added playingOnly optional parameter to TweensById and TweensByTarget
- Added DemiLib pre-alpha (used by DOTween Pro)
2015-04-30 16:57:00 +02:00

23 lines
603 B
C#

using DG.Tweening;
using DG.Tweening.Core;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Temp : BrainBase
{
public Transform target;
public bool independentUpdate = true;
void Start()
{
target.DORotate(new Vector3(0, 180, 0), 2, RotateMode.Fast).SetUpdate(independentUpdate).SetEase(Ease.Linear).SetLoops(-1, LoopType.Incremental);
}
void OnGUI()
{
if (GUILayout.Button("VSync 0")) QualitySettings.vSyncCount = 0;
if (GUILayout.Button("VSync 1")) QualitySettings.vSyncCount = 1;
if (GUILayout.Button("VSync 2")) QualitySettings.vSyncCount = 2;
}
}