We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd1001 commit ec2c60dCopy full SHA for ec2c60d
Runtime/Tween.cs
@@ -1,3 +1,5 @@
1
+using UnityEngine.SceneManagement;
2
+
3
namespace Zigurous.Tweening
4
{
5
/// <summary>
@@ -443,7 +445,7 @@ public void Restart()
443
445
internal void Reset()
444
446
447
this.id = -1;
- this.sceneIndex = -1;
448
+ this.sceneIndex = SceneManager.GetActiveScene().buildIndex;
449
450
this.state = TweenState.Ready;
451
this.internalState = InternalTweenState.Queued;
0 commit comments