protected virtual void Dispose(bool disposing) { if (DoodadInstances != null) { foreach (var instance in DoodadInstances) { WorldFrame.Instance.M2Manager.RemoveInstance(instance.Hash, instance.Uuid); } DoodadInstances.Clear(); DoodadInstances = null; } if (TextureNames != null) { TextureNames.Clear(); TextureNames = null; } if (mTextures != null) { mTextures.Clear(); mTextures = null; } FullVertices = null; Continent = null; }
public virtual void Dispose() { DoodadInstances.Clear(); }