diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML index c7fd644..be5cc38 100644 --- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML +++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML @@ -2161,43 +2161,43 @@ If TRUE the tween will ignore Unity's Time.timeScale - Sets the onStart callback for the tween. + Sets the onStart callback for the tween, clearing any previous onStart callback that was set. Called the first time the tween is set in a playing state, after any eventual delay - Sets the onPlay callback for the tween. + Sets the onPlay callback for the tween, clearing any previous onPlay callback that was set. Called when the tween is set in a playing state, after any eventual delay. Also called each time the tween resumes playing from a paused state - Sets the onPlay callback for the tween. + Sets the onPause callback for the tween, clearing any previous onPause callback that was set. Called when the tween state changes from playing to paused. If the tween has autoKill set to FALSE, this is called also when the tween reaches completion. - Sets the onRewind callback for the tween. + Sets the onRewind callback for the tween, clearing any previous onRewind callback that was set. Called when the tween is rewinded, either by calling Rewind or by reaching the start position while playing backwards. Rewinding a tween that is already rewinded will not fire this callback - Sets the onUpdate callback for the tween. + Sets the onUpdate callback for the tween, clearing any previous onUpdate callback that was set. Called each time the tween updates - Sets the onStepComplete callback for the tween. + Sets the onStepComplete callback for the tween, clearing any previous onStepComplete callback that was set. Called the moment the tween completes one loop cycle, even when going backwards - Sets the onComplete callback for the tween. + Sets the onComplete callback for the tween, clearing any previous onComplete callback that was set. Called the moment the tween reaches its final forward position, loops included - Sets the onKill callback for the tween. + Sets the onKill callback for the tween, clearing any previous onKill callback that was set. Called the moment the tween is killed - Sets the onWaypointChange callback for the tween. + Sets the onWaypointChange callback for the tween, clearing any previous onWaypointChange callback that was set. Called when a path tween's current waypoint changes diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll index 4cc027d..42b84f5 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb index b4d6dec..d4d5d24 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll index 41a6fc8..4c46997 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb index cf28477..f4abd6b 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll index 35253aa..3e2d1ad 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb index 474e490..7f2109e 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll index a10ea43..b5dd190 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb index 225c0b5..f8e8efe 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll index d23abcf..e685c33 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb index b84a22f..12a388f 100644 Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML index c7fd644..be5cc38 100644 --- a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML +++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML @@ -2161,43 +2161,43 @@ If TRUE the tween will ignore Unity's Time.timeScale - Sets the onStart callback for the tween. + Sets the onStart callback for the tween, clearing any previous onStart callback that was set. Called the first time the tween is set in a playing state, after any eventual delay - Sets the onPlay callback for the tween. + Sets the onPlay callback for the tween, clearing any previous onPlay callback that was set. Called when the tween is set in a playing state, after any eventual delay. Also called each time the tween resumes playing from a paused state - Sets the onPlay callback for the tween. + Sets the onPause callback for the tween, clearing any previous onPause callback that was set. Called when the tween state changes from playing to paused. If the tween has autoKill set to FALSE, this is called also when the tween reaches completion. - Sets the onRewind callback for the tween. + Sets the onRewind callback for the tween, clearing any previous onRewind callback that was set. Called when the tween is rewinded, either by calling Rewind or by reaching the start position while playing backwards. Rewinding a tween that is already rewinded will not fire this callback - Sets the onUpdate callback for the tween. + Sets the onUpdate callback for the tween, clearing any previous onUpdate callback that was set. Called each time the tween updates - Sets the onStepComplete callback for the tween. + Sets the onStepComplete callback for the tween, clearing any previous onStepComplete callback that was set. Called the moment the tween completes one loop cycle, even when going backwards - Sets the onComplete callback for the tween. + Sets the onComplete callback for the tween, clearing any previous onComplete callback that was set. Called the moment the tween reaches its final forward position, loops included - Sets the onKill callback for the tween. + Sets the onKill callback for the tween, clearing any previous onKill callback that was set. Called the moment the tween is killed - Sets the onWaypointChange callback for the tween. + Sets the onWaypointChange callback for the tween, clearing any previous onWaypointChange callback that was set. Called when a path tween's current waypoint changes diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll index 4cc027d..42b84f5 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb index b4d6dec..d4d5d24 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll index 41a6fc8..4c46997 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb index cf28477..f4abd6b 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll index 35253aa..3e2d1ad 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb index 474e490..7f2109e 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll index a10ea43..b5dd190 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb index 225c0b5..f8e8efe 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll index d23abcf..e685c33 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb index b84a22f..12a388f 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML index c7fd644..be5cc38 100644 --- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML +++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML @@ -2161,43 +2161,43 @@ If TRUE the tween will ignore Unity's Time.timeScale - Sets the onStart callback for the tween. + Sets the onStart callback for the tween, clearing any previous onStart callback that was set. Called the first time the tween is set in a playing state, after any eventual delay - Sets the onPlay callback for the tween. + Sets the onPlay callback for the tween, clearing any previous onPlay callback that was set. Called when the tween is set in a playing state, after any eventual delay. Also called each time the tween resumes playing from a paused state - Sets the onPlay callback for the tween. + Sets the onPause callback for the tween, clearing any previous onPause callback that was set. Called when the tween state changes from playing to paused. If the tween has autoKill set to FALSE, this is called also when the tween reaches completion. - Sets the onRewind callback for the tween. + Sets the onRewind callback for the tween, clearing any previous onRewind callback that was set. Called when the tween is rewinded, either by calling Rewind or by reaching the start position while playing backwards. Rewinding a tween that is already rewinded will not fire this callback - Sets the onUpdate callback for the tween. + Sets the onUpdate callback for the tween, clearing any previous onUpdate callback that was set. Called each time the tween updates - Sets the onStepComplete callback for the tween. + Sets the onStepComplete callback for the tween, clearing any previous onStepComplete callback that was set. Called the moment the tween completes one loop cycle, even when going backwards - Sets the onComplete callback for the tween. + Sets the onComplete callback for the tween, clearing any previous onComplete callback that was set. Called the moment the tween reaches its final forward position, loops included - Sets the onKill callback for the tween. + Sets the onKill callback for the tween, clearing any previous onKill callback that was set. Called the moment the tween is killed - Sets the onWaypointChange callback for the tween. + Sets the onWaypointChange callback for the tween, clearing any previous onWaypointChange callback that was set. Called when a path tween's current waypoint changes diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll index 4cc027d..42b84f5 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb index b4d6dec..d4d5d24 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll index 41a6fc8..4c46997 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb index cf28477..f4abd6b 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll index 35253aa..3e2d1ad 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb index 474e490..7f2109e 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll index a10ea43..b5dd190 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb index 225c0b5..f8e8efe 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll index d23abcf..e685c33 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb index b84a22f..12a388f 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/_Tests/Callbacks.cs b/UnityTests.Unity5/Assets/_Tests/Callbacks.cs new file mode 100644 index 0000000..75b1c85 --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/Callbacks.cs @@ -0,0 +1,39 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using DG.Tweening; + +public class Callbacks : BrainBase +{ + public Transform target; + + Tween tween; + + IEnumerator Start() + { + tween = target.DOMoveX(5, 5); + yield return new WaitForSeconds(1f); + + Debug.Log("Set OnUpdate"); + tween.OnUpdate(Update0); + tween.onUpdate += Update1; + yield return new WaitForSeconds(1); + + Debug.Log("Clear OnUpdate0"); + tween.onUpdate -= Update0; + yield return new WaitForSeconds(1); + + Debug.Log("Clear OnUpdate"); + tween.OnUpdate(null); + } + + void Update0() + { + Debug.Log("UPDATE 0"); + } + + void Update1() + { + Debug.Log(" UPDATE 1"); + } +} \ No newline at end of file diff --git a/UnityTests.Unity5/Assets/_Tests/Callbacks.cs.meta b/UnityTests.Unity5/Assets/_Tests/Callbacks.cs.meta new file mode 100644 index 0000000..574cbf1 --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/Callbacks.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17c1ba11ceda9f944bd3923a09ede1d2 +timeCreated: 1499872480 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/_Tests/Callbacks.unity b/UnityTests.Unity5/Assets/_Tests/Callbacks.unity new file mode 100644 index 0000000..d640606 Binary files /dev/null and b/UnityTests.Unity5/Assets/_Tests/Callbacks.unity differ diff --git a/UnityTests.Unity5/Assets/_Tests/Callbacks.unity.meta b/UnityTests.Unity5/Assets/_Tests/Callbacks.unity.meta new file mode 100644 index 0000000..ef2625c --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/Callbacks.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8baa97c0c36d73f45a8a22d0e04fd97e +timeCreated: 1499872473 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/_DOTween.Assembly/DOTween/DOTween.cs b/_DOTween.Assembly/DOTween/DOTween.cs index 33aeebe..3404daf 100644 --- a/_DOTween.Assembly/DOTween/DOTween.cs +++ b/_DOTween.Assembly/DOTween/DOTween.cs @@ -32,7 +32,7 @@ namespace DG.Tweening public class DOTween { /// DOTween's version - public static readonly string Version = "1.1.610"; + public static readonly string Version = "1.1.615"; /////////////////////////////////////////////// // Options //////////////////////////////////// diff --git a/_DOTween.Assembly/DOTween/Tween.cs b/_DOTween.Assembly/DOTween/Tween.cs index ad09808..f4c5113 100644 --- a/_DOTween.Assembly/DOTween/Tween.cs +++ b/_DOTween.Assembly/DOTween/Tween.cs @@ -33,24 +33,24 @@ namespace DG.Tweening // public TweenCallback onStart; // (in ABSSequentiable) When the tween is set in a PLAY state the first time, AFTER any eventual delay /// Called when the tween is set in a playing state, after any eventual delay. /// Also called each time the tween resumes playing from a paused state - internal TweenCallback onPlay; + public TweenCallback onPlay; /// Called when the tween state changes from playing to paused. /// If the tween has autoKill set to FALSE, this is called also when the tween reaches completion. - internal TweenCallback onPause; + public TweenCallback onPause; /// Called when the tween is rewinded, /// either by calling Rewind or by reaching the start position while playing backwards. /// Rewinding a tween that is already rewinded will not fire this callback - internal TweenCallback onRewind; + public TweenCallback onRewind; /// Called each time the tween updates - internal TweenCallback onUpdate; + public TweenCallback onUpdate; /// Called the moment the tween completes one loop cycle - internal TweenCallback onStepComplete; + public TweenCallback onStepComplete; /// Called the moment the tween reaches completion (loops included) - internal TweenCallback onComplete; + public TweenCallback onComplete; /// Called the moment the tween is killed - internal TweenCallback onKill; + public TweenCallback onKill; /// Called when a path tween's current waypoint changes - internal TweenCallback onWaypointChange; + public TweenCallback onWaypointChange; // Fixed after creation internal bool isFrom; // Used to prevent settings like isRelative from being applied on From tweens diff --git a/_DOTween.Assembly/DOTween/TweenSettingsExtensions.cs b/_DOTween.Assembly/DOTween/TweenSettingsExtensions.cs index 35160cb..020d091 100644 --- a/_DOTween.Assembly/DOTween/TweenSettingsExtensions.cs +++ b/_DOTween.Assembly/DOTween/TweenSettingsExtensions.cs @@ -232,7 +232,7 @@ namespace DG.Tweening return t; } - /// Sets the onStart callback for the tween. + /// Sets the onStart callback for the tween, clearing any previous onStart callback that was set. /// Called the first time the tween is set in a playing state, after any eventual delay public static T OnStart(this T t, TweenCallback action) where T : Tween { @@ -242,7 +242,7 @@ namespace DG.Tweening return t; } - /// Sets the onPlay callback for the tween. + /// Sets the onPlay callback for the tween, clearing any previous onPlay callback that was set. /// Called when the tween is set in a playing state, after any eventual delay. /// Also called each time the tween resumes playing from a paused state public static T OnPlay(this T t, TweenCallback action) where T : Tween @@ -253,7 +253,7 @@ namespace DG.Tweening return t; } - /// Sets the onPlay callback for the tween. + /// Sets the onPause callback for the tween, clearing any previous onPause callback that was set. /// Called when the tween state changes from playing to paused. /// If the tween has autoKill set to FALSE, this is called also when the tween reaches completion. public static T OnPause(this T t, TweenCallback action) where T : Tween @@ -264,7 +264,7 @@ namespace DG.Tweening return t; } - /// Sets the onRewind callback for the tween. + /// Sets the onRewind callback for the tween, clearing any previous onRewind callback that was set. /// Called when the tween is rewinded, /// either by calling Rewind or by reaching the start position while playing backwards. /// Rewinding a tween that is already rewinded will not fire this callback @@ -276,7 +276,7 @@ namespace DG.Tweening return t; } - /// Sets the onUpdate callback for the tween. + /// Sets the onUpdate callback for the tween, clearing any previous onUpdate callback that was set. /// Called each time the tween updates public static T OnUpdate(this T t, TweenCallback action) where T : Tween { @@ -286,7 +286,7 @@ namespace DG.Tweening return t; } - /// Sets the onStepComplete callback for the tween. + /// Sets the onStepComplete callback for the tween, clearing any previous onStepComplete callback that was set. /// Called the moment the tween completes one loop cycle, even when going backwards public static T OnStepComplete(this T t, TweenCallback action) where T : Tween { @@ -296,7 +296,7 @@ namespace DG.Tweening return t; } - /// Sets the onComplete callback for the tween. + /// Sets the onComplete callback for the tween, clearing any previous onComplete callback that was set. /// Called the moment the tween reaches its final forward position, loops included public static T OnComplete(this T t, TweenCallback action) where T : Tween { @@ -306,7 +306,7 @@ namespace DG.Tweening return t; } - /// Sets the onKill callback for the tween. + /// Sets the onKill callback for the tween, clearing any previous onKill callback that was set. /// Called the moment the tween is killed public static T OnKill(this T t, TweenCallback action) where T : Tween { @@ -316,7 +316,7 @@ namespace DG.Tweening return t; } - /// Sets the onWaypointChange callback for the tween. + /// Sets the onWaypointChange callback for the tween, clearing any previous onWaypointChange callback that was set. /// Called when a path tween's current waypoint changes public static T OnWaypointChange(this T t, TweenCallback action) where T : Tween { diff --git a/_DOTween.Assembly/bin/DOTween.XML b/_DOTween.Assembly/bin/DOTween.XML index c7fd644..be5cc38 100644 --- a/_DOTween.Assembly/bin/DOTween.XML +++ b/_DOTween.Assembly/bin/DOTween.XML @@ -2161,43 +2161,43 @@ If TRUE the tween will ignore Unity's Time.timeScale - Sets the onStart callback for the tween. + Sets the onStart callback for the tween, clearing any previous onStart callback that was set. Called the first time the tween is set in a playing state, after any eventual delay - Sets the onPlay callback for the tween. + Sets the onPlay callback for the tween, clearing any previous onPlay callback that was set. Called when the tween is set in a playing state, after any eventual delay. Also called each time the tween resumes playing from a paused state - Sets the onPlay callback for the tween. + Sets the onPause callback for the tween, clearing any previous onPause callback that was set. Called when the tween state changes from playing to paused. If the tween has autoKill set to FALSE, this is called also when the tween reaches completion. - Sets the onRewind callback for the tween. + Sets the onRewind callback for the tween, clearing any previous onRewind callback that was set. Called when the tween is rewinded, either by calling Rewind or by reaching the start position while playing backwards. Rewinding a tween that is already rewinded will not fire this callback - Sets the onUpdate callback for the tween. + Sets the onUpdate callback for the tween, clearing any previous onUpdate callback that was set. Called each time the tween updates - Sets the onStepComplete callback for the tween. + Sets the onStepComplete callback for the tween, clearing any previous onStepComplete callback that was set. Called the moment the tween completes one loop cycle, even when going backwards - Sets the onComplete callback for the tween. + Sets the onComplete callback for the tween, clearing any previous onComplete callback that was set. Called the moment the tween reaches its final forward position, loops included - Sets the onKill callback for the tween. + Sets the onKill callback for the tween, clearing any previous onKill callback that was set. Called the moment the tween is killed - Sets the onWaypointChange callback for the tween. + Sets the onWaypointChange callback for the tween, clearing any previous onWaypointChange callback that was set. Called when a path tween's current waypoint changes diff --git a/_DOTween.Assembly/bin/DOTween.dll b/_DOTween.Assembly/bin/DOTween.dll index 4cc027d..42b84f5 100644 Binary files a/_DOTween.Assembly/bin/DOTween.dll and b/_DOTween.Assembly/bin/DOTween.dll differ diff --git a/_DOTween.Assembly/bin/DOTween.dll.mdb b/_DOTween.Assembly/bin/DOTween.dll.mdb index b4d6dec..d4d5d24 100644 Binary files a/_DOTween.Assembly/bin/DOTween.dll.mdb and b/_DOTween.Assembly/bin/DOTween.dll.mdb differ diff --git a/_DOTween.Assembly/bin/DOTween43.dll b/_DOTween.Assembly/bin/DOTween43.dll index 41a6fc8..4c46997 100644 Binary files a/_DOTween.Assembly/bin/DOTween43.dll and b/_DOTween.Assembly/bin/DOTween43.dll differ diff --git a/_DOTween.Assembly/bin/DOTween43.dll.mdb b/_DOTween.Assembly/bin/DOTween43.dll.mdb index cf28477..f4abd6b 100644 Binary files a/_DOTween.Assembly/bin/DOTween43.dll.mdb and b/_DOTween.Assembly/bin/DOTween43.dll.mdb differ diff --git a/_DOTween.Assembly/bin/DOTween46.dll b/_DOTween.Assembly/bin/DOTween46.dll index 35253aa..3e2d1ad 100644 Binary files a/_DOTween.Assembly/bin/DOTween46.dll and b/_DOTween.Assembly/bin/DOTween46.dll differ diff --git a/_DOTween.Assembly/bin/DOTween46.dll.mdb b/_DOTween.Assembly/bin/DOTween46.dll.mdb index 474e490..7f2109e 100644 Binary files a/_DOTween.Assembly/bin/DOTween46.dll.mdb and b/_DOTween.Assembly/bin/DOTween46.dll.mdb differ diff --git a/_DOTween.Assembly/bin/DOTween50.dll b/_DOTween.Assembly/bin/DOTween50.dll index a10ea43..b5dd190 100644 Binary files a/_DOTween.Assembly/bin/DOTween50.dll and b/_DOTween.Assembly/bin/DOTween50.dll differ diff --git a/_DOTween.Assembly/bin/DOTween50.dll.mdb b/_DOTween.Assembly/bin/DOTween50.dll.mdb index 225c0b5..f8e8efe 100644 Binary files a/_DOTween.Assembly/bin/DOTween50.dll.mdb and b/_DOTween.Assembly/bin/DOTween50.dll.mdb differ diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll index d23abcf..e685c33 100644 Binary files a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll and b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll differ diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb index b84a22f..12a388f 100644 Binary files a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb and b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb differ