public override void Unload() { UnloadAll(); excuter.StopAllCoroutines(); GameObject.DestroyImmediate(excuter.gameObject); excuter = null; }
public override void Load() { loadedResources = new Dictionary <string, UnityEngine.Object>(); loadingRequest = new Dictionary <string, LoadingRequest>(); excuter = new GameObject("[Resources Manager Excuter]").AddComponent <ResourcesExcuter>(); GameObject.DontDestroyOnLoad(excuter.gameObject); Application.backgroundLoadingPriority = ThreadPriority.Normal; }