public void Dispose()
 {
     PluginInterface.UiBuilder.OnBuildUi -= this.BuildUI;
     FittingRoomUI?.Dispose();
     itemSearchWindow?.Dispose();
     RemoveCommands();
     PluginInterface.Dispose();
 }
Esempio n. 2
0
        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();
        }