protected void AddCallback(LoaderDelegate callback) { if (callback != null) { mFinishCallback.Add(callback); } }
public static AssetBundleLoader Load(string url, LoaderDelegate callback = null, LoaderMode mode = LoaderMode.Sync) { var loader = AutoNew <AssetBundleLoader>(url, callback, false, mode); //Create new Loader return(loader); }
public static void Init(GameObject root, LoaderDelegate loader) { Root = root; if (null != loader) { Loader = loader; } }
public static T AutoNew <T>(string url, LoaderDelegate callback, bool forceCreateNew = false, LoaderMode mode = LoaderMode.Sync) where T : AbstractResourceLoader, new() { if (callback != null) { mLoaderCallback = callback; } T loader = new T(); loader.Init(url, mode); return(loader); }
static UIManager() { Loader = DefaultLoader; }
public static void SetLoadFun(LoaderDelegate fun) { loaderHandler = fun; }
public ObservedBinding(ControlType control, ObserverDelegate saveDelegate, LoaderDelegate loadDelegate) { this.control = control; this.onLoad = loadDelegate; this.onSave = saveDelegate; }
public static AssetFileLoader Load(string url, LoaderDelegate callback, LoaderMode mode = LoaderMode.Sync) { var loader = AutoNew <AssetFileLoader>(url, callback, false, mode); return(loader); }
public AbstractResourceLoader LoadBundleAsync(string path, LoaderDelegate callback = null) { var loader = AssetFileLoader.Load(path, callback, LoaderMode.Async); return(loader); }