1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2026-02-14 19:11:39 +08:00

Added tween.IsInitialized() method

This commit is contained in:
Daniele Giardini 2015-04-22 14:09:17 +02:00
parent b5d1cc8853
commit 4f66d9ce4e
52 changed files with 60 additions and 1 deletions

1
.gitignore vendored
View File

@ -22,5 +22,6 @@ ExternalPluginsTestsAndExamples*
*.Unity*/Assets/Console*Pro* *.Unity*/Assets/Console*Pro*
*.Unity*/Assets/Text*Mesh*Pro* *.Unity*/Assets/Text*Mesh*Pro*
*HOPoolOperator* *HOPoolOperator*
*HOTools*
zz builds zz builds
zz UnityTests* zz UnityTests*

View File

@ -769,6 +769,9 @@
<summary>Returns TRUE if the tween is complete <summary>Returns TRUE if the tween is complete
(silently fails and returns FALSE if the tween has been killed)</summary> (silently fails and returns FALSE if the tween has been killed)</summary>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.IsInitialized(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween has been initialized</summary>
</member>
<member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween is playing</summary> <summary>Returns TRUE if this tween is playing</summary>
</member> </member>

View File

@ -769,6 +769,9 @@
<summary>Returns TRUE if the tween is complete <summary>Returns TRUE if the tween is complete
(silently fails and returns FALSE if the tween has been killed)</summary> (silently fails and returns FALSE if the tween has been killed)</summary>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.IsInitialized(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween has been initialized</summary>
</member>
<member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween is playing</summary> <summary>Returns TRUE if this tween is playing</summary>
</member> </member>

View File

@ -769,6 +769,9 @@
<summary>Returns TRUE if the tween is complete <summary>Returns TRUE if the tween is complete
(silently fails and returns FALSE if the tween has been killed)</summary> (silently fails and returns FALSE if the tween has been killed)</summary>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.IsInitialized(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween has been initialized</summary>
</member>
<member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween is playing</summary> <summary>Returns TRUE if this tween is playing</summary>
</member> </member>

View File

@ -0,0 +1,15 @@
using UnityEngine;
using DG.Tweening;
public class DOTweenAnimationSequence_RewindAndPlay : MonoBehaviour
{
public DOTweenAnimation dotweenAnimation;
void OnGUI()
{
if (GUILayout.Button("Rewind and Play")) {
dotweenAnimation.DORewind();
dotweenAnimation.DOPlay();
}
}
}

View File

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

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1924ac9dc94fdae4881af87cbce3ee1e
timeCreated: 1429702578
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

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.0.606"; public static readonly string Version = "1.0.610";
/////////////////////////////////////////////// ///////////////////////////////////////////////
// Options //////////////////////////////////// // Options ////////////////////////////////////

View File

@ -455,6 +455,17 @@ namespace DG.Tweening
return t.isComplete; return t.isComplete;
} }
/// <summary>Returns TRUE if this tween has been initialized</summary>
public static bool IsInitialized(this Tween t)
{
if (!t.active) {
if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
return false;
}
return t.startupDone;
}
/// <summary>Returns TRUE if this tween is playing</summary> /// <summary>Returns TRUE if this tween is playing</summary>
public static bool IsPlaying(this Tween t) public static bool IsPlaying(this Tween t)
{ {

View File

@ -769,6 +769,9 @@
<summary>Returns TRUE if the tween is complete <summary>Returns TRUE if the tween is complete
(silently fails and returns FALSE if the tween has been killed)</summary> (silently fails and returns FALSE if the tween has been killed)</summary>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.IsInitialized(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween has been initialized</summary>
</member>
<member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.IsPlaying(DG.Tweening.Tween)">
<summary>Returns TRUE if this tween is playing</summary> <summary>Returns TRUE if this tween is playing</summary>
</member> </member>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.