Пример #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;
 }