/// <summary> /// 加载完成 /// </summary> public virtual void OnComplete() { LoadMgr.RemoveReq(this); if (on_complete != null) { on_complete(this); } }
public override void OnDestroy() { LoadMgr.RemoveReq(this); if (load_reqs != null) { foreach (var v in load_reqs) { v.OnDestroy(); } } }
/// <summary> /// 加载开始处理 /// (会递归所有子项) /// </summary> public override void OnStart() { LoadMgr.AddReq(this); if (load_reqs != null) { foreach (var v in load_reqs) { v.OnStart(); } } }
/// <summary> /// 销毁请求(完成或中断都可能触发销毁) /// </summary> public virtual void OnDestroy() { LoadMgr.RemoveReq(this); }
/// <summary> /// 加载开始 /// </summary> public virtual void OnStart() { LoadMgr.AddReq(this); }