示例#1
0
        /// <summary>
        /// 加载完成
        /// </summary>
        public virtual void OnComplete()
        {
            LoadMgr.RemoveReq(this);

            if (on_complete != null)
            {
                on_complete(this);
            }
        }
示例#2
0
        public override void OnDestroy()
        {
            LoadMgr.RemoveReq(this);

            if (load_reqs != null)
            {
                foreach (var v in load_reqs)
                {
                    v.OnDestroy();
                }
            }
        }
示例#3
0
        /// <summary>
        /// 加载开始处理
        /// (会递归所有子项)
        /// </summary>
        public override void OnStart()
        {
            LoadMgr.AddReq(this);

            if (load_reqs != null)
            {
                foreach (var v in load_reqs)
                {
                    v.OnStart();
                }
            }
        }
示例#4
0
 /// <summary>
 /// 销毁请求(完成或中断都可能触发销毁)
 /// </summary>
 public virtual void OnDestroy()
 {
     LoadMgr.RemoveReq(this);
 }
示例#5
0
 /// <summary>
 /// 加载开始
 /// </summary>
 public virtual void OnStart()
 {
     LoadMgr.AddReq(this);
 }