1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 01:06:02 +08:00

PlayModeStateChanged obsolete fix

This commit is contained in:
Demigiant 2018-11-28 15:55:31 +01:00
parent 30d3827625
commit 164a26e20b
21 changed files with 16 additions and 4 deletions

1
.gitignore vendored
View File

@ -40,4 +40,5 @@ UnityTests.Unity5BETA
UnityTests.Unity5 - LastVersionBeforeModules
ModulesTest.Unity2018
biz
screenshots
zzTemp

View File

@ -46,7 +46,11 @@ namespace DG.Tweening
#if UNITY_EDITOR
// Fires OnApplicationPause in DOTweenComponent even when Editor is paused (otherwise it's only fired at runtime)
#if UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5
static void PlaymodeStateChanged()
#else
static void PlaymodeStateChanged(UnityEditor.PlayModeStateChange state)
#endif
{
if (DOTween.instance == null) return;
DOTween.instance.OnApplicationPause(UnityEditor.EditorApplication.isPaused);

View File

@ -11,11 +11,14 @@ using UnityEngine.UI;
public class TempTests : BrainBase
{
float initNum = 0;
public Transform target0, target1;
IEnumerator Start()
{
yield return new WaitForSeconds(1);
DOTween.To(()=>initNum,(x)=>initNum=x,400000000,3f).OnUpdate( ()=> Debug.Log(initNum));
while (true) {
yield return null;
target0.DOMoveX(1, 0.1f);
// target1.DOMoveX(1, 0.1f);
}
}
}

View File

@ -32,7 +32,7 @@ namespace DG.Tweening
public class DOTween
{
/// <summary>DOTween's version</summary>
public static readonly string Version = "1.2.130"; // Last version before modules: 1.1.755
public static readonly string Version = "1.2.135"; // Last version before modules: 1.1.755
///////////////////////////////////////////////
// Options ////////////////////////////////////

Binary file not shown.

View File

@ -46,7 +46,11 @@ namespace DG.Tweening
#if UNITY_EDITOR
// Fires OnApplicationPause in DOTweenComponent even when Editor is paused (otherwise it's only fired at runtime)
#if UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5
static void PlaymodeStateChanged()
#else
static void PlaymodeStateChanged(UnityEditor.PlayModeStateChange state)
#endif
{
if (DOTween.instance == null) return;
DOTween.instance.OnApplicationPause(UnityEditor.EditorApplication.isPaused);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 736 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB