public void UnloadAllScripts() { scriptLoader.UnloadAll(); #if UNITY_GOOGLE_DRIVE_AVAILABLE // Delete cached scripts when using Google Drive resource provider. if (providersManager.IsProviderInitialized(ResourceProviderType.GoogleDrive)) { (providersManager.GetProvider(ResourceProviderType.GoogleDrive) as UnityCommon.GoogleDriveResourceProvider).PurgeCachedResources(config.Loader.PathPrefix); } #endif if (IsNavigatorAvailable) { navigatorUI.DestroyScriptButtons(); } }
public Task InitializeServiceAsync() { loader = new ResourceLoader <GameObject>(new[] { providersManager.GetProvider(ResourceProviderType.Project) }); return(Task.CompletedTask); }