Skip to content

Commit

Permalink
Fix TweenAnimatiom recycling
Browse files Browse the repository at this point in the history
  • Loading branch information
ls9512 committed Jun 11, 2021
1 parent 8226d2d commit bd37173
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Core/Script/_Base/Tween/Tweener.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/////////////////////////////////////////////////////////////////////////////
\/////////////////////////////////////////////////////////////////////////////
//
// Script : Tweener.cs
// Info : 插值类基类
Expand Down Expand Up @@ -743,15 +743,11 @@ public virtual void Stop(bool destroy = true)
if (Application.isPlaying && TweenAnimation != null)
{
TweenAnimation.Tweener = null;
TweenManager.Ins?.Remove(this, true);
if (AutoKill && destroy)
{
TweenManager.Ins?.Remove(this, true);
Object.Destroy(TweenAnimation);
}
else
{
TweenManager.Ins?.Remove(this, false);
}
}
else
{
Expand Down

0 comments on commit bd37173

Please sign in to comment.