public void OnPathFound(Vector3[] newPath, bool pathSuccessful) { if (pathSuccessful) { path = newPath; StopCoroutine("FollowPath"); StartCoroutine("FollowPath"); } else { _spawner.kill(this); Destroy(gameObject); } }