LazyBot/Assets/Scripts/Searching/Detection/DetectionAreaContainer.cs
/// <summary>
/// Switches active state of all areas.
/// </summary>
/// <param name="isActive">activation state</param>
Switches active state of all areas.
Switches active state of all areas .
private void SwitchAllAreas(bool isActive)
        {
            if (!enabled) return;
            for (int i = 0; i < _tracingAreas.Length; i++)
                _tracingAreas[i].enabled = isActive;
        }
private void SwitchAllAreas ( bool isActive ) { if ( ! enabled ) return ; for ( int i = 0 ; i < _tracingAreas . Length ; i ++ ) _tracingAreas [ i ] . enabled = isActive ; }
Switches active state of all areas.
Switches active state of all areas .
isActive
bool
None