internal override void Init()
 {
     //Z.Debug.Log("ResourceManager init");
     Z.Resource = this;
     Z.Pool.RegisterClassCustomPool(() => new ResourceItem(), ResourceItem.Clean, 500);
     ResourceGroupManager.Init();
     if (LoadFromAssetBundle)
     {
         AssetBundleManager.LoadABManifest();//AB清单解析 先放这里 正式应该在流程启动后在流程里解析
     }
 }
 /// <summary>
 /// 清理资源组中资源
 /// </summary>
 /// <param name="groupIndex"></param>
 /// <param name="destroyCache">是否真的卸载资源</param>
 public void Release(int groupIndex, bool destroyCache = true)
 {
     ResourceGroupManager.Release(groupIndex, destroyCache);
 }
        //internal override void MgrUpdate()
        //{

        //}

        internal override void ShutDown()
        {
            ResourceGroupManager.ReleaseAll();
        }
 /// <summary>
 /// 注册资源组
 /// </summary>
 /// <typeparam name="T">资源组类型</typeparam>
 /// <returns>号牌</returns>
 public int RegistGroup <T>() where T : ResourceGroup, new()
 {
     return(ResourceGroupManager.RegistGroup <T>());
 }