mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 09:16:02 +08:00
Added check to prevent already sequenced tweens to be added to other sequences
This commit is contained in:
parent
e20889fae2
commit
ff40e475e8
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -402,7 +402,7 @@ namespace DG.Tweening
|
|||||||
public static Sequence Append(this Sequence s, Tween t)
|
public static Sequence Append(this Sequence s, Tween t)
|
||||||
{
|
{
|
||||||
if (s == null || !s.active || s.creationLocked) return s;
|
if (s == null || !s.active || s.creationLocked) return s;
|
||||||
if (t == null || !t.active) return s;
|
if (t == null || !t.active || t.isSequenced) return s;
|
||||||
|
|
||||||
Sequence.DoInsert(s, t, s.duration);
|
Sequence.DoInsert(s, t, s.duration);
|
||||||
return s;
|
return s;
|
||||||
@ -413,7 +413,7 @@ namespace DG.Tweening
|
|||||||
public static Sequence Prepend(this Sequence s, Tween t)
|
public static Sequence Prepend(this Sequence s, Tween t)
|
||||||
{
|
{
|
||||||
if (s == null || !s.active || s.creationLocked) return s;
|
if (s == null || !s.active || s.creationLocked) return s;
|
||||||
if (t == null || !t.active) return s;
|
if (t == null || !t.active || t.isSequenced) return s;
|
||||||
|
|
||||||
Sequence.DoPrepend(s, t);
|
Sequence.DoPrepend(s, t);
|
||||||
return s;
|
return s;
|
||||||
@ -423,7 +423,7 @@ namespace DG.Tweening
|
|||||||
public static Sequence Join(this Sequence s, Tween t)
|
public static Sequence Join(this Sequence s, Tween t)
|
||||||
{
|
{
|
||||||
if (s == null || !s.active || s.creationLocked) return s;
|
if (s == null || !s.active || s.creationLocked) return s;
|
||||||
if (t == null || !t.active) return s;
|
if (t == null || !t.active || t.isSequenced) return s;
|
||||||
|
|
||||||
Sequence.DoInsert(s, t, s.lastTweenInsertTime);
|
Sequence.DoInsert(s, t, s.lastTweenInsertTime);
|
||||||
return s;
|
return s;
|
||||||
@ -436,7 +436,7 @@ namespace DG.Tweening
|
|||||||
public static Sequence Insert(this Sequence s, float atPosition, Tween t)
|
public static Sequence Insert(this Sequence s, float atPosition, Tween t)
|
||||||
{
|
{
|
||||||
if (s == null || !s.active || s.creationLocked) return s;
|
if (s == null || !s.active || s.creationLocked) return s;
|
||||||
if (t == null || !t.active) return s;
|
if (t == null || !t.active || t.isSequenced) return s;
|
||||||
|
|
||||||
Sequence.DoInsert(s, t, atPosition);
|
Sequence.DoInsert(s, t, atPosition);
|
||||||
return s;
|
return s;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user