/// <summary> /// If all units are invisible, make the platoon invisible. /// </summary> private void MaybeTogglePlatoonVisibility() { PlatoonBehaviour platoon = _unit.Platoon; bool visible = !platoon.Units.TrueForAll( u => !u.VisionComponent.IsVisible); platoon.ToggleLabelVisibility(visible); }