public void Dispose() { PluginInterface.UiBuilder.OnBuildUi -= this.BuildUI; FittingRoomUI?.Dispose(); itemSearchWindow?.Dispose(); RemoveCommands(); PluginInterface.Dispose(); }
public void Dispose() { PluginInterface.UiBuilder.OnBuildUi -= this.BuildUI; FittingRoomUI?.Dispose(); itemSearchWindow?.Dispose(); RemoveCommands(); PluginInterface.Dispose(); foreach (var t in textureDictionary) { t.Value?.Dispose(); } textureDictionary.Clear(); }