public void Remove(ILightLayer layer) { if (layer == null || _layers == null || !_layers.Contains(layer)) { return; } }
public void Add(ILightLayer layer) { if (_layers == null) { _layers = new List <ILightLayer>(); } _layers.Add(layer); layer.Init(_runtime); }