Now ignoring this error
This commit is contained in:
parent
31aeb72f27
commit
71c1471a4e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue