1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2026-02-06 15:24:57 +08:00

- cleanup

This commit is contained in:
Demigiant 2019-02-28 10:50:11 +01:00
parent 64b3cb86a1
commit d7078862b2
78 changed files with 20 additions and 671 deletions

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 1b9c6b17aec073847a9d34c432a148ec
timeCreated: 1548936985
timeCreated: 1551037669
licenseType: Pro
TextScriptImporter:
userData:

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 56bca508bd08a4f44a507f17e7577afb
timeCreated: 1548936971
timeCreated: 1551037654
licenseType: Pro
DefaultImporter:
userData:

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: c7602d66796c87a4fac3013913374c07
timeCreated: 1548936979
timeCreated: 1551037663
licenseType: Pro
PluginImporter:
serializedVersion: 2

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: d3e15b806a8368742ba6f10e794d7b76
timeCreated: 1551014982
timeCreated: 1551216472
licenseType: Pro
TextureImporter:
fileIDToRecycleName: {}

View File

@ -1,5 +0,0 @@
fileFormatVersion: 2
guid: d39176b1d2f7d0748abbfe614c1c2496
folderAsset: yes
DefaultImporter:
userData:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 3fb89465d399dca42868a23e46c09e39
timeCreated: 1426174764
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 6831cbca8299ae0418dd3182bc6ba157
timeCreated: 1428224871
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,14 +0,0 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
public class BugsPro : BrainBase
{
void Start()
{
List<Tween> tweens = DOTween.TweensById("SomeId");
Debug.Log(tweens.Count);
foreach (Tween t in tweens) t.Play();
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 0f315b60ca8525a4e882dcf158ce706a
timeCreated: 1429628786
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: f9644e669fe057449a81e3cef7b1458c
timeCreated: 1429628779
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 328d279023fd54f44aac61377d486f42
timeCreated: 1452682838
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,139 +0,0 @@
using UnityEngine;
using System.Collections;
using DG.Tweening;
using TMPro;
public class ExternalPlugins_TextMeshPro : BrainBase
{
public TextMeshPro[] texts;
public TextMeshProUGUI[] uguiTexts;
[TextArea(5, 10)]
public string replaceWText = "This <#00ff00>rich <b>bold</b>+<i>italic</i> text</color> is <#ff0000>gonna appear</color> with a tween, <#f38013>yabadabadoo!</color>";
bool richTextEnabled = true;
string[] orTexts;
string[] orGuiTexts;
void Start()
{
DOTween.Init();
orTexts = new string[texts.Length];
for (int i = 0; i < texts.Length; ++i) orTexts[i] = texts[i].text;
orGuiTexts = new string[uguiTexts.Length];
for (int i = 0; i < uguiTexts.Length; ++i) orGuiTexts[i] = uguiTexts[i].text;
}
void OnGUI()
{
if (GUILayout.Button("Rich Text Support: " + (richTextEnabled ? "ON" : "OFF"))) richTextEnabled = !richTextEnabled;
GUILayout.BeginHorizontal();
if (GUILayout.Button("Color To Green")) {
foreach (TextMeshPro t in texts) t.DOColor(Color.green, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOColor(Color.green, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Color To Red")) {
foreach (TextMeshPro t in texts) t.DOColor(Color.red, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOColor(Color.red, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Fade Out")) {
foreach (TextMeshPro t in texts) t.DOFade(0, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFade(0, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Fade In")) {
foreach (TextMeshPro t in texts) t.DOFade(1, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFade(1, 1).SetEase(Ease.Linear);
}
GUILayout.EndHorizontal();
GUILayout.BeginHorizontal();
if (GUILayout.Button("Face Color To Green")) {
foreach (TextMeshPro t in texts) t.DOFaceColor(Color.green, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFaceColor(Color.green, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Face Color To Red")) {
foreach (TextMeshPro t in texts) t.DOFaceColor(Color.red, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFaceColor(Color.red, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Face Fade Out")) {
foreach (TextMeshPro t in texts) t.DOFaceFade(0, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFaceFade(0, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Face Fade In")) {
foreach (TextMeshPro t in texts) t.DOFaceFade(1, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFaceFade(1, 1).SetEase(Ease.Linear);
}
GUILayout.EndHorizontal();
GUILayout.BeginHorizontal();
if (GUILayout.Button("Glow Color To Green")) {
foreach (TextMeshPro t in texts) t.DOGlowColor(Color.green, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOGlowColor(Color.green, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Glow Color To Red")) {
foreach (TextMeshPro t in texts) t.DOGlowColor(Color.red, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOGlowColor(Color.red, 1).SetEase(Ease.Linear);
}
GUILayout.EndHorizontal();
GUILayout.BeginHorizontal();
if (GUILayout.Button("Outline Color To Green")) {
foreach (TextMeshPro t in texts) t.DOOutlineColor(Color.green, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOOutlineColor(Color.green, 1).SetEase(Ease.Linear);
}
if (GUILayout.Button("Outline Color To Red")) {
foreach (TextMeshPro t in texts) t.DOOutlineColor(Color.red, 1).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOOutlineColor(Color.red, 1).SetEase(Ease.Linear);
}
GUILayout.EndHorizontal();
GUILayout.BeginHorizontal();
if (GUILayout.Button("Font Resize Down")) {
foreach (TextMeshPro t in texts) t.DOFontSize(10, 1);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFontSize(10, 1);
}
if (GUILayout.Button("Font Resize Up")) {
foreach (TextMeshPro t in texts) t.DOFontSize(32, 1);
foreach (TextMeshProUGUI t in uguiTexts) t.DOFontSize(32, 1);
}
if (GUILayout.Button("Scale to 1.5")) {
foreach (TextMeshPro t in texts) t.DOScale(1.5f, 1);
foreach (TextMeshProUGUI t in uguiTexts) t.DOScale(1.5f, 1);
}
if (GUILayout.Button("Trim Max Visible Characters")) {
foreach (TextMeshPro t in texts) t.DOMaxVisibleCharacters(22, 1);
foreach (TextMeshProUGUI t in uguiTexts) t.DOMaxVisibleCharacters(22, 1);
}
GUILayout.EndHorizontal();
GUILayout.BeginHorizontal();
if (GUILayout.Button("Text Reset")) {
DOTween.KillAll();
for (int i = 0; i < texts.Length; ++i) texts[i].text = orTexts[i];
for (int i = 0; i < uguiTexts.Length; ++i) uguiTexts[i].text = orGuiTexts[i];
}
if (GUILayout.Button("Text Replace")) {
foreach (TextMeshPro t in texts) t.DOText(replaceWText, 5, richTextEnabled).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOText(replaceWText, 5, richTextEnabled).SetEase(Ease.Linear);
}
if (GUILayout.Button("Text Replace Add")) {
foreach (TextMeshPro t in texts) t.DOText(" " + replaceWText, 5, richTextEnabled).SetRelative().SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOText(" " + replaceWText, 5, richTextEnabled).SetRelative().SetEase(Ease.Linear);
}
if (GUILayout.Button("Text Replace W Scramble")) {
foreach (TextMeshPro t in texts) t.DOText(replaceWText, 5, richTextEnabled, ScrambleMode.Lowercase).SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOText(replaceWText, 5, richTextEnabled, ScrambleMode.Lowercase).SetEase(Ease.Linear);
}
if (GUILayout.Button("Text Replace Add W Scramble")) {
foreach (TextMeshPro t in texts) t.DOText(" " + replaceWText, 5, richTextEnabled, ScrambleMode.Lowercase).SetRelative().SetEase(Ease.Linear);
foreach (TextMeshProUGUI t in uguiTexts) t.DOText(" " + replaceWText, 5, richTextEnabled, ScrambleMode.Lowercase).SetRelative().SetEase(Ease.Linear);
}
GUILayout.EndHorizontal();
GUILayout.BeginHorizontal();
if (GUILayout.Button("TogglePause")) DOTween.TogglePauseAll();
if (GUILayout.Button("Flip")) DOTween.FlipAll();
GUILayout.EndHorizontal();
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: f9c491e5065317f41beb06aaac4b042f
timeCreated: 1427479531
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: f1341851c621e954d88d72d42fca5db9
timeCreated: 1427479446
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: f4d55975684bc264ab80fa6651fb1998
timeCreated: 1428064141
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,25 +0,0 @@
using DG.Tweening;
using System.Collections;
using UnityEngine;
public class Paths : BrainBase
{
public Transform target;
public DOTweenPath dotweenPath;
void Start()
{
Vector3[] p = new[] {
new Vector3(2,2,2),
new Vector3(2,4,2),
new Vector3(0,2,2),
};
target.DOPath(p, 4);
// Log length of each DOTweenPath waypoint
Debug.Log(dotweenPath.path.wpLengths.Length);
for (int i = 0; i < dotweenPath.path.wpLengths.Length; ++i) {
Debug.Log(i + " > " + dotweenPath.path.wpLengths[i]);
}
}
}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 9121962a6609ba743a789347a38b036f
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -1,4 +0,0 @@
fileFormatVersion: 2
guid: c5bfd946971ae7e48b678c8b96e7ff3d
DefaultImporter:
userData:

View File

@ -1,27 +0,0 @@
using UnityEngine;
using System.Collections;
using DG.Tweening;
public class PathsWDrawPaths : MonoBehaviour
{
public DOTweenPath path;
public int subdivisionsXSegment = 10;
public Color startColor = Color.white;
public Color endColor = Color.white;
public float startW = 1;
public float endW = 1;
public Material material;
void Start()
{
Vector3[] drawPoints = path.GetTween().PathGetDrawPoints(subdivisionsXSegment);
int pointsCount = drawPoints.Length;
LineRenderer lr = path.gameObject.AddComponent<LineRenderer>();
lr.material = material;
lr.SetColors(startColor, endColor);
lr.SetWidth(startW, endW);
lr.SetVertexCount(pointsCount);
for (int i = 0; i < pointsCount; ++i) lr.SetPosition(i, drawPoints[i]);
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: b8412d3159b7e4f41a52d0726d03859f
timeCreated: 1432984650
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 78b42a9711be35745a01f7ef360f60c0
timeCreated: 1432984644
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,94 +0,0 @@
using Holoville.HOTween;
using Holoville.HOTween.Plugins;
using System.Collections;
using UnityEngine;
public class Paths_HOTween : MonoBehaviour
{
public Axis lockPosition;
public Axis lockRotation0, lockRotation1;
public bool is2DPath, is2DSideScroller;
public Transform[] targets;
void Start()
{
HOTween.showPathGizmos = true;
Vector3[] path = new[] {
Vector3.zero,
new Vector3(0,1,0),
new Vector3(1,2,0),
new Vector3(2,1,0),
new Vector3(2,0,0)
};
Axis lockRotation = lockRotation0 | lockRotation1;
PlugVector3Path plugPath = new PlugVector3Path(path, true).ClosePath().OrientToPath(0.1f, lockRotation).LockPosition(lockPosition);
if (is2DPath) plugPath.Is2D(is2DSideScroller);
HOTween.To(targets[0], 3, new TweenParms()
.Prop("position", plugPath)
.Ease(EaseType.Linear)
.Loops(-1)
).Pause();
plugPath = new PlugVector3Path(path).ClosePath().LookAt(targets[2]).LockPosition(lockPosition);
if (is2DPath) plugPath.Is2D(is2DSideScroller);
HOTween.To(targets[1], 3, new TweenParms()
.Prop("position", plugPath)
.Ease(EaseType.Linear)
.Loops(-1)
).Pause();
// Linear VS curved
plugPath = new PlugVector3Path(path, true, PathType.Curved).ClosePath().LookAt(Vector3.zero).LockPosition(lockPosition);
if (is2DPath) plugPath.Is2D(is2DSideScroller);
HOTween.To(targets[2], 3, new TweenParms()
.Prop("position", plugPath)
.Ease(EaseType.Linear)
.Loops(-1)
).Pause();
plugPath = new PlugVector3Path(path, true, PathType.Linear).ClosePath().OrientToPath(0.1f, lockRotation).LockPosition(lockPosition);
if (is2DPath) plugPath.Is2D(is2DSideScroller);
HOTween.To(targets[3], 3, new TweenParms()
.Prop("position", plugPath)
.Ease(EaseType.Linear)
.Loops(-1)
).Pause();
// Linear VS curved top-down
path = new[] {
Vector3.zero,
new Vector3(0,0,1),
new Vector3(1,0,2),
new Vector3(2,0,1),
new Vector3(2,0,0)
};
plugPath = new PlugVector3Path(path, true, PathType.Curved).ClosePath().OrientToPath(0.1f, lockRotation).LockPosition(lockPosition);
if (is2DPath) plugPath.Is2D(is2DSideScroller);
HOTween.To(targets[4], 3, new TweenParms()
.Prop("position", plugPath)
.Ease(EaseType.Linear)
.Loops(-1)
).Pause();
plugPath = new PlugVector3Path(path, true, PathType.Linear).ClosePath().OrientToPath(0.1f, lockRotation).LockPosition(lockPosition);
if (is2DPath) plugPath.Is2D(is2DSideScroller);
HOTween.To(targets[5], 3, new TweenParms()
.Prop("position", plugPath)
.Ease(EaseType.Linear)
.Loops(-1)
).Pause();
}
void OnGUI()
{
DGUtils.BeginGUI();
GUILayout.BeginHorizontal();
if (GUILayout.Button("Play")) HOTween.Play();
if (GUILayout.Button("Pause")) HOTween.Pause();
if (GUILayout.Button("Kill")) HOTween.Kill();
GUILayout.EndHorizontal();
DGUtils.EndGUI();
}
}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 6a13a5a033ebd06458bd685af5583116
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -1,4 +0,0 @@
fileFormatVersion: 2
guid: 9f573f93773af8d4a87aa96af4be4072
DefaultImporter:
userData:

View File

@ -1,43 +0,0 @@
using DG.Tweening;
using Holoville.HOPoolOperatorV2;
using UnityEngine;
using System.Collections;
public class PoolingTweens : BrainBase
{
public Transform container;
public bool spawnInContainer;
void Start()
{
container.DOMoveX(30, 40);
}
void Update()
{
if (Input.GetMouseButtonDown(0)) {
Vector3 mousePos = Input.mousePosition;
mousePos.z = -Camera.main.transform.position.z;
Vector3 wPos = Camera.main.ScreenToWorldPoint(mousePos);
if (Input.GetKey(KeyCode.LeftShift)) {
// Spawn path
if (Input.GetKey(KeyCode.Space)) {
HOPoolManager.Spawn(TestPOP.DOPathCubeasChild, wPos, spawnInContainer ? container : null);
// t.GetComponentInChildren<DOTweenPath>().DORestart(true);
} else {
HOPoolManager.Spawn(TestPOP.DOPathCube, wPos, spawnInContainer ? container : null);
// t.GetComponent<DOTweenPath>().DORestart(true);
}
} else {
// Spawn dice
if (Input.GetKey(KeyCode.Space)) {
HOPoolManager.Spawn(TestPOP.DOAnimationDiceasChild, wPos, spawnInContainer ? container : null);
// t.GetComponentInChildren<DOTweenAnimation>().DORestart(true);
} else {
HOPoolManager.Spawn(TestPOP.DOAnimationDice, wPos, spawnInContainer ? container : null);
// t.GetComponent<DOTweenAnimation>().DORestart(true);
}
}
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: cffb7913c77822a4fa6837148225ec49
timeCreated: 1428140353
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 11ed4dc51f21516449fbe33346db16c4
timeCreated: 1428140308
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: ac9cda89bbc523e45824df51703d91e6
timeCreated: 1430923802
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,39 +0,0 @@
using DG.Tweening;
using System.Collections;
using UnityEngine;
public class ShapeTweens : BrainBase
{
public float duration = 1;
public int loops = 1;
public LoopType loopType = LoopType.Yoyo;
public Ease ease = Ease.Linear;
public SpiralMode spiralMode;
public float frequency = 4;
public float speed = 1;
public float depth = 0;
public Vector3 direction = Vector3.up;
public bool snapping;
public Transform[] targets;
void Start()
{
targets[0].DOSpiral(duration, direction, spiralMode, speed, frequency, depth, snapping)
.SetEase(ease)
.SetLoops(loops, loopType)
.SetAutoKill(false)
.Pause();
}
void OnGUI()
{
DGUtils.BeginGUI();
GUILayout.BeginHorizontal();
if (GUILayout.Button("TogglePause")) DOTween.TogglePauseAll();
if (GUILayout.Button("Restart")) DOTween.RestartAll();
GUILayout.EndHorizontal();
DGUtils.EndGUI();
}
}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 1e8ed40e1bb084f44ae3ecb0632a1aba
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -1,4 +0,0 @@
fileFormatVersion: 2
guid: 5c2314ff1b46d99408662536edca1d98
DefaultImporter:
userData:

View File

@ -1,21 +0,0 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine.SceneManagement;
public class TempPro : MonoBehaviour
{
public GameObject target;
IEnumerator Start()
{
GameObject newPath = Instantiate(target);
newPath.transform.SetParent(this.transform.parent, false);
yield return new WaitForSeconds(1);
newPath = Instantiate(target);
newPath.transform.SetParent(this.transform.parent, false);
yield return new WaitForSeconds(2);
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: a23af4cabef4a60458b7cea8f64c6bc4
timeCreated: 1428922934
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 9664d49472fc31a40b3149198d903aa5
timeCreated: 1426535291
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 6274db3b7de32fd48850882fdcc7b4ab
timeCreated: 1433414690
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 61ed382d1a0663444ab0f79297419be2
timeCreated: 1426588047
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: a4da94159cf411e4f9d57797268dee0f
timeCreated: 1426590721
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: db1681233c945d04391d1fa3f9db64b9
folderAsset: yes
timeCreated: 1431691826
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 119d9ce7e5ea0754da0fe27dc9cead2a
timeCreated: 1431691885
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: eaa2c132e8e026e44989e7ae280bd7c9
timeCreated: 1428144289
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: c57692d52b4a57846b90280df0916c85
timeCreated: 1428142740
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: b6e8b01b6b1d6e342bb2d86f0ff9219f
timeCreated: 1428066567
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: c1afa4bdd1fa0ac48a14ad0cba50230c
timeCreated: 1428065137
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -11,19 +11,24 @@ using UnityEngine.UI;
public class TempTests : BrainBase
{
public Transform[] targets;
IEnumerator Start()
public Transform target;
Tween myTween;
void Start()
{
yield return new WaitForSeconds(1);
for (int i = 0; i < targets.Length; ++i) {
targets[i].DOMove(new Vector3(UnityEngine.Random.Range(-2f, 2f), UnityEngine.Random.Range(-2f, 2f), 0), 20)
.SetId(i % 2 == 0 ? "a" : "b");
myTween = target.DOMove(new Vector3(5, 5, 5), 25).SetAutoKill(false).SetUpdate(true);
}
void Update()
{
if (Input.GetKey(KeyCode.J))
{
DOTween.timeScale -= 0.1f;
}
yield return new WaitForSeconds(1);
List<Tween> ts = DOTween.TweensById("a");
foreach (Tween t in ts) {
t.Pause();
if (Input.GetKey(KeyCode.K))
{
DOTween.timeScale += 0.1f;
}
Debug.Log(DOTween.timeScale);
}
}

Binary file not shown.