void ChaserNewDestination() { currentDestination = CBehavior.RequestDestination(); requestCounter++; if (currentDestination.tag == "Node") { seekingTarget = false; closestNode = FindClosestNode(transform.position); //followPath = AStarScript.ClusterPathFind(closestNode, currentDestination.gameObject); List <Transform> tempPath = AStarScript.ClusterPathFind(closestNode, currentDestination.gameObject); foreach (Transform T in tempPath) { if (!followPath.Contains(T)) { followPath.Add(T); } } if (closestNode.transform.name != currentDestination.transform.name || followPath != null) { hasDestination = true; } else { Debug.Log("Cancelled Destination: " + currentDestination.transform.name + " for " + transform.name); hasDestination = false; currentDestination = null; } } else { seekingTarget = true; } }