Example #1
0
        /*
         *  AssetBundles handlers.
         */

        // assetBundleList store controls.
        private AssetBundleList[] LoadAssetBundleListsFromStorage()
        {
            // load stored assetBundleList then return it.
            var filePaths = Autoya.Persist_FileNamesInDomain(AssetBundlesSettings.ASSETBUNDLES_LIST_STORED_DOMAIN);

            return(filePaths.Select(
                       path => JsonUtility.FromJson <AssetBundleList>(
                           Autoya.Persist_Load(
                               AssetBundlesSettings.ASSETBUNDLES_LIST_STORED_DOMAIN, Path.GetFileName(path)
                               )
                           )
                       ).ToArray());
        }