public void ClearNoiseSplat(NoiseSplat splat) { if (splats.Contains(splat)) { splats.Remove(splat); spatialSplats.Remove(splat); } }
protected override void OnSaveLoadRootUnregistered(SaveLoadRoot root) { // Remove plants from partitioner if they die if (root != null && root.gameObject != null) { var uprootable = root.GetComponent <Uprootable>(); if (uprootable != null) { layerTargets.Remove(uprootable); partition.Remove(uprootable); } } }