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()