public void Dispose() { sceneCatalogView.OnHideCatalogClicked -= HideCatalogClicked; if (sceneCatalogView.catalogAssetPackList != null) { sceneCatalogView.catalogAssetPackList.OnCatalogPackClick -= OnCatalogItemPackSelected; } if (sceneCatalogView.catalogGroupList != null) { sceneCatalogView.catalogGroupList.OnCatalogItemClicked -= CatalogItemSelected; sceneCatalogView.catalogGroupList.OnResumeInput -= ResumeInput; sceneCatalogView.catalogGroupList.OnStopInput -= StopInput; sceneCatalogView.catalogGroupList.OnPointerEnterInAdapter -= OnPointerEnter; sceneCatalogView.catalogGroupList.OnPointerExitInAdapter -= OnPointerExit; } if (sceneCatalogView.category != null) { sceneCatalogView.category.onValueChanged.RemoveListener(CategoryFilter); } if (sceneCatalogView.favorites != null) { sceneCatalogView.favorites.onValueChanged.RemoveListener(FavoritesFilter); } if (sceneCatalogView.assetPack != null) { sceneCatalogView.assetPack.onValueChanged.RemoveListener(AssetsPackFilter); } sceneCatalogView.OnSceneCatalogBack -= SceneCatalogBack; quickBarController.OnQuickBarShortcutSelected -= QuickBarInput; quickBarController.OnCatalogItemSelected -= CatalogItemSelected; biwSearchBarController.OnFilterChange -= AssetsFiltered; biwSearchBarController.OnFilterRemove -= FilterRemoved; favoritesController.Dispose(); biwSearchBarController.Dispose(); }