1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 01:36:05 +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 UnityTests.Unity5 - LastVersionBeforeModules
ModulesTest.Unity2018 ModulesTest.Unity2018
biz biz
screenshots
zzTemp zzTemp

View File

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

View File

@ -11,11 +11,14 @@ using UnityEngine.UI;
public class TempTests : BrainBase public class TempTests : BrainBase
{ {
float initNum = 0; public Transform target0, target1;
IEnumerator Start() IEnumerator Start()
{ {
yield return new WaitForSeconds(1); while (true) {
DOTween.To(()=>initNum,(x)=>initNum=x,400000000,3f).OnUpdate( ()=> Debug.Log(initNum)); 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 public class DOTween
{ {
/// <summary>DOTween's version</summary> /// <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 //////////////////////////////////// // Options ////////////////////////////////////

Binary file not shown.

View File

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