From 71c1471a4ed1665f8b047694b3e26aaa9a1cda2f Mon Sep 17 00:00:00 2001 From: BOT Alex <44818698+MagicBOTAlex@users.noreply.github.com> Date: Sun, 4 Feb 2024 06:51:07 +0100 Subject: [PATCH] Now ignoring this error --- Assets/Scripts/Enemy/EnemyPathFinding.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Enemy/EnemyPathFinding.cs b/Assets/Scripts/Enemy/EnemyPathFinding.cs index 14af1e3..af8b395 100644 --- a/Assets/Scripts/Enemy/EnemyPathFinding.cs +++ b/Assets/Scripts/Enemy/EnemyPathFinding.cs @@ -42,7 +42,7 @@ public class EnemyPathFinding : MonoBehaviour if (Physics2D.Raycast(transform.position, dir.normalized, ropeDistCheck, ropeCheckMask)) return; - agent.SetDestination(closestTarget.position); + try { agent.SetDestination(closestTarget.position); } catch { }// Fuck this error. } private Transform GetClosestTarget()