LazyBot/Assets/Scripts/Searching/Detection/DetectionArea.cs
/// <summary>
/// Changes gizmo color based on its state.
/// </summary>
Changes gizmo color based on its state.
Changes gizmo color based on its state .
protected virtual void SetAreaColor()
        {
            switch (_state)
            {                
                case Data.HitAreaState.Disabled:
                    this._gizmoColor = this._gizmoColorInactive;
                    break;
                case Data.HitAreaState.Enabled:
                    this._gizmoColor = this._gizmoColorActive;
                    break;
                case Data.HitAreaState.Found:
                    this._gizmoColor = this._gizmoColorFound;
                    break;
                default:
                    break;
            }
        }
protected virtual void SetAreaColor ( ) { switch ( _state ) { case Data . HitAreaState . Disabled : this . _gizmoColor = this . _gizmoColorInactive ; break ; case Data . HitAreaState . Enabled : this . _gizmoColor = this . _gizmoColorActive ; break ; case Data . HitAreaState . Found : this . _gizmoColor = this . _gizmoColorFound ; break ; default : break ; } }
Changes gizmo color based on its state.
Changes gizmo color based on its state .