예제 #1
0
        /// <summary>
        /// 销毁
        /// </summary>
        static public void Destroy()
        {
            // Loader
            if (null != _loader)
            {
                UnityEngine.Object.Destroy(_loader);
                _loader = null;
            }

            // Resources
            foreach (var pair in _dictResources)
            {
                pair.Value.Destroy();
            }
            _dictResources.Clear();
            _unusedResources.Clear();
        }
예제 #2
0
 /// <summary>
 /// 初始化
 /// </summary>
 static public void Init(GameObject mainGameObject)
 {
     _loader             = mainGameObject.GetComponent <ResLoader>();
     _PersistentDataPath = Application.persistentDataPath;
 }
예제 #3
0
 public ResLoadPipeline(ResLoader loader)
 {
     _loader = loader;
 }