示例#1
0
        public void LoadAsync(LoadSuccess onLoadSuccess, LoadError onLoadFailed)
        {
            LoaderGroup loaderGroup = new LoaderGroup();

            PopulatedLoadGroup(loaderGroup);
            loaderGroup.LoadAsync(onLoadSuccess, onLoadFailed);
        }
示例#2
0
        public static LoaderGroup Get(LoaderTask loaderTask)
        {
            LoaderGroup loaderGroup = s_LoaderGroupPool.Get();

            loaderGroup.loaderTask = loaderTask;
            return(loaderGroup);
        }
示例#3
0
        public void LoadAsync(LoadSuccess onLoadSuccess, LoadError onLoadFailed)
        {
            LoaderGroup loaderGroup = new LoaderGroup();

            loaderGroup.AppendProvider(_loaderGroup);
            PopulatedLoadGroup(loaderGroup);
            loaderGroup.LoadAsync(() =>
            {
                IsLoaded = true;
                onLoadSuccess();
            }, onLoadFailed);
        }
示例#4
0
 partial void PopulatedLoadGroup(LoaderGroup loadGroup);
示例#5
0
 public static void Release(LoaderGroup loaderGroup)
 {
     s_LoaderGroupPool.Release(loaderGroup);
 }
示例#6
0
 partial void PopulatedLoadGroup(LoaderGroup loadGroup)
 {
     loadGroup.AppendProvider(_synchronousStaticData);
 }