Example #1
0
        private void OnComplete(object sender, AssetsProxy assetsProxy, object data)
        {
            UILoader       loader   = ( UILoader )sender;
            UILoadCallback callback = ( UILoadCallback )loader.data;

            callback.Invoke();
        }
Example #2
0
        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);
        }