1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2026-02-10 09:08:43 +08:00

Fixed bug with DORewind and DORestart calling RewindAll and RestartAll instead than per-target operations

This commit is contained in:
Daniele Giardini 2015-04-06 22:20:28 +02:00
parent 36a47e9c7f
commit 2610e8e58a
14 changed files with 13 additions and 13 deletions

View File

@ -1270,14 +1270,14 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)

View File

@ -1270,14 +1270,14 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)

View File

@ -1270,14 +1270,14 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)

View File

@ -21,7 +21,7 @@ namespace DG.Tweening
public class DOTween
{
/// <summary>DOTween's version</summary>
public static readonly string Version = "1.0.437";
public static readonly string Version = "1.0.440";
///////////////////////////////////////////////
// Options ////////////////////////////////////

View File

@ -820,9 +820,9 @@ namespace DG.Tweening
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens restarted.
/// </summary>
public static int DORestart(this Component target)
public static int DORestart(this Component target, bool includeDelay = true)
{
return DOTween.RestartAll(target);
return DOTween.Restart(target, includeDelay);
}
/// <summary>
@ -830,9 +830,9 @@ namespace DG.Tweening
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens rewinded.
/// </summary>
public static int DORewind(this Component target)
public static int DORewind(this Component target, bool includeDelay = true)
{
return DOTween.RewindAll(target);
return DOTween.Rewind(target, includeDelay);
}
/// <summary>

View File

@ -1270,14 +1270,14 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component)">
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)

Binary file not shown.