/// <summary> /// Removes the specified <see cref="GameObject"/> from <see cref="OutlineLayers"/>. /// </summary> /// <param name="go">A <see cref="GameObject"/> to remove.</param> public void RemoveGameObject(GameObject go) { if (_outlineLayers) { _outlineLayers.Remove(go); } }
public void Remove_SetsCount() { var layer = new OutlineLayer(); _layerCollection.Add(layer); _layerCollection.Remove(layer); Assert.Zero(_layerCollection.Count); }
public void Remove_DoesNotThrowOnNullArgument() { Assert.DoesNotThrow(() => _layerCollection.Remove(null)); }