示例#1
0
        public override void Unload()
        {
            UnloadAll();

            excuter.StopAllCoroutines();
            GameObject.DestroyImmediate(excuter.gameObject);
            excuter = null;
        }
示例#2
0
        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;
        }