Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 public Task InitializeServiceAsync()
 {
     loader = new ResourceLoader <GameObject>(new[] { providersManager.GetProvider(ResourceProviderType.Project) });
     return(Task.CompletedTask);
 }