public void Start(ProvideHandle provideHandle, VirtualAssetBundle bundle)
 {
     m_PI = provideHandle;
     provideHandle.SetWaitForCompletionCallback(WaitForCompletionHandler);
     m_RequestOperation            = bundle.LoadAssetAsync(m_PI, m_PI.Location);
     m_RequestOperation.Completed += RequestOperation_Completed;
 }
            public void Start(ProvideHandle provideHandle, VirtualAssetBundleProvider provider)
            {
                provideHandle.SetProgressCallback(GetPercentComplete);
                m_Provider = provider;
                m_PI       = provideHandle;

                m_RequestOperation            = m_Provider.LoadAsync(m_PI.Location);
                m_RequestOperation.Completed += bundleOp =>
                {
                    object result = (bundleOp.Result != null && m_PI.Type.IsAssignableFrom(bundleOp.Result.GetType())) ? bundleOp.Result : null;
                    m_PI.Complete(result, (result != null && bundleOp.OperationException == null), bundleOp.OperationException);
                };
            }
            private void RequestOperation_Completed(VBAsyncOperation <object> obj)
            {
                bool success = (obj.Result != null && m_PI.Type.IsAssignableFrom(obj.Result.GetType())) && obj.OperationException == null;

                m_PI.Complete(obj.Result, success, obj.OperationException);
            }
 public void Start(ProvideHandle provideHandle, VirtualAssetBundle bundle)
 {
     m_PI = provideHandle;
     m_RequestOperation            = bundle.LoadAssetAsync(m_PI.Type, m_PI.Location);
     m_RequestOperation.Completed += RequestOperation_Completed;
 }