private void OnComplete(object sender, AssetsProxy assetsProxy, object data) { UILoader loader = ( UILoader )sender; UILoadCallback callback = ( UILoadCallback )loader.data; callback.Invoke(); }
public void Load(UILoadCallback callback) { if (this._loading || this.loaded) { return; } this._loading = true; UILoader loader = new UILoader(this.assetBundlePath, callback); loader.Load(this.OnComplete, null, this.OnError); }