/// <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(); }
/// <summary> /// 初始化 /// </summary> static public void Init(GameObject mainGameObject) { _loader = mainGameObject.GetComponent <ResLoader>(); _PersistentDataPath = Application.persistentDataPath; }
public ResLoadPipeline(ResLoader loader) { _loader = loader; }