using System.Collections.Generic; using UnityEngine.SceneManagement; using YooAsset; namespace ET.Client { /// /// 用来管理资源,生命周期跟随Parent,比如CurrentScene用到的资源应该用CurrentScene的ResourcesLoaderComponent来加载 /// 这样CurrentScene释放后,它用到的所有资源都释放了 /// [ComponentOf] public class ResourcesLoaderComponent : Entity, IAwake, IAwake, IDestroy { public ResourcePackage package; public Dictionary handlers = new(); } }