Skip to content

Commit fbbab11

Browse files
committed
Reset scene index to -1
1 parent 700d8b3 commit fbbab11

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Runtime/Tween.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using UnityEngine.SceneManagement;
2-
3-
namespace Zigurous.Tweening
1+
namespace Zigurous.Tweening
42
{
53
/// <summary>
64
/// The base class of every tween.
@@ -450,7 +448,7 @@ public void Restart()
450448
internal void Reset()
451449
{
452450
id = -1;
453-
sceneIndex = SceneManager.GetActiveScene().buildIndex;
451+
sceneIndex = -1;
454452

455453
state = TweenState.Ready;
456454
internalState = InternalTweenState.Queued;

0 commit comments

Comments
 (0)