/* * Used as a listener to the target flock's birdsChangedEvent * Checks if we should still be targeting that flock */ private void TargetChanged() { // If we need to not target that flock anymore if (!targetFlock.HasColor(targetColor)) { CancelTargeting(); } }