From 81844c3e2c0e1c489a9da2e065e118c2055dfe45 Mon Sep 17 00:00:00 2001 From: Keelhauled <10797970+Keelhauled@users.noreply.github.com> Date: Thu, 16 May 2024 00:48:49 +0300 Subject: [PATCH] [CD] Fix exception on start --- CollidersDebug.Core/CollidersDebug.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CollidersDebug.Core/CollidersDebug.cs b/CollidersDebug.Core/CollidersDebug.cs index 5ed8248..a92c34c 100644 --- a/CollidersDebug.Core/CollidersDebug.cs +++ b/CollidersDebug.Core/CollidersDebug.cs @@ -245,9 +245,9 @@ private void WindowFunc(int id) protected override void LateUpdate() { - if (MakerAPI.InsideMaker) + if (MakerAPI.InsideMaker && this._debugLines != null) { - if (this._toggle.Value && this._target != null) + if (this._toggle != null && this._toggle.Value && this._target != null) { if (this._target.enabled != this._debugLines.IsActive()) this._debugLines.SetActive(this._target.enabled);