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:
parent
7553187f79
commit
c0baf69eab
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -34,7 +34,7 @@ namespace DG.Tweening
|
|||||||
public class DOTween
|
public class DOTween
|
||||||
{
|
{
|
||||||
/// <summary>DOTween's version</summary>
|
/// <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 ////////////////////////////////////
|
// Options ////////////////////////////////////
|
||||||
|
|||||||
@ -111,6 +111,7 @@ namespace DG.Tweening
|
|||||||
/// <param name="complete">If TRUE completes the tween before killing it</param>
|
/// <param name="complete">If TRUE completes the tween before killing it</param>
|
||||||
public static void Kill(this Tween t, bool complete = false)
|
public static void Kill(this Tween t, bool complete = false)
|
||||||
{
|
{
|
||||||
|
if (!DOTween.initialized) return;
|
||||||
if (t == null) {
|
if (t == null) {
|
||||||
if (Debugger.logPriority > 1) Debugger.LogNullTween(t); return;
|
if (Debugger.logPriority > 1) Debugger.LogNullTween(t); return;
|
||||||
} else if (!t.active) {
|
} else if (!t.active) {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user