1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00
2019-02-28 10:50:11 +01:00

34 lines
725 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class TempTests : BrainBase
{
public Transform target;
Tween myTween;
void Start()
{
myTween = target.DOMove(new Vector3(5, 5, 5), 25).SetAutoKill(false).SetUpdate(true);
}
void Update()
{
if (Input.GetKey(KeyCode.J))
{
DOTween.timeScale -= 0.1f;
}
if (Input.GetKey(KeyCode.K))
{
DOTween.timeScale += 0.1f;
}
Debug.Log(DOTween.timeScale);
}
}