Example #1
0
        internal static void GetProductsInfoAsync(ApexSettings settings, bool checkForUpdates, Action <IEnumerable <ProductInfo> > callback)
        {
            EditorAsync.Execute(
                () => GetProductsInfo(settings, checkForUpdates),
                products =>
            {
                if (settings.isDirty)
                {
                    settings.SaveChanges();
                }

                callback(products);
            });
        }
Example #2
0
        internal static void GetProductsInfoAsync(ApexSettings settings, bool checkForUpdates, Action<IEnumerable<ProductInfo>> callback)
        {
            EditorAsync.Execute(
                () => GetProductsInfo(settings, checkForUpdates),
                products =>
                {
                    if (settings.isDirty)
                    {
                        settings.SaveChanges();
                    }

                    if (_assetsDownloaded)
                    {
                        _assetsDownloaded = false;
                        AssetDatabase.Refresh();
                    }

                    callback(products);
                });
        }
Example #3
0
        internal static void GetProductsInfoAsync(ApexSettings settings, bool checkForUpdates, Action <IEnumerable <ProductInfo> > callback)
        {
            EditorAsync.Execute(
                () => GetProductsInfo(settings, checkForUpdates),
                products =>
            {
                if (settings.isDirty)
                {
                    settings.SaveChanges();
                }

                if (_assetsDownloaded)
                {
                    _assetsDownloaded = false;
                    AssetDatabase.Refresh();
                }

                callback(products);
            });
        }