LazyBot/Assets/Scripts/Searching/Detection/DetectionAreaContainer.cs
/// <summary>
/// Stitches activation state of specific area.
/// </summary>
/// <param name="name">name of area</param>
/// <param name="isActive">activation state</param>
Stitches activation state of specific area.
Stitches activation state of specific area .
public void SwitchArea(string name, bool isActive)
        {
            if (!enabled) return;
            for (int i = 0; i < _tracingAreas.Length; i++)
                if (_tracingAreas[i].Name == name)
                {
                    _tracingAreas[i].enabled = isActive;
                    break;
                }
        }
public void SwitchArea ( string name , bool isActive ) { if ( ! enabled ) return ; for ( int i = 0 ; i < _tracingAreas . Length ; i ++ ) if ( _tracingAreas [ i ] . Name == name ) { _tracingAreas [ i ] . enabled = isActive ; break ; } }
Stitches activation state of specific area.
Stitches activation state of specific area .
name
string
name of area
name of area
isActive
bool
None