1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 01:06:02 +08:00

[BUGFIX] Prevented Kill extension to be called if DOTween has been cleared: fixes IndexOutOfRange exception on stop playmode

This commit is contained in:
Demigiant 2019-10-10 19:14:11 +02:00
parent 7553187f79
commit c0baf69eab
14 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace DG.Tweening
public class DOTween
{
/// <summary>DOTween's version</summary>
public static readonly string Version = "1.2.282"; // Last version before modules: 1.1.755
public static readonly string Version = "1.2.283"; // Last version before modules: 1.1.755
///////////////////////////////////////////////
// Options ////////////////////////////////////

View File

@ -111,6 +111,7 @@ namespace DG.Tweening
/// <param name="complete">If TRUE completes the tween before killing it</param>
public static void Kill(this Tween t, bool complete = false)
{
if (!DOTween.initialized) return;
if (t == null) {
if (Debugger.logPriority > 1) Debugger.LogNullTween(t); return;
} else if (!t.active) {

Binary file not shown.