public void Run(AssetServicePrepareCallbackSet callbackSet, object context) { if (Status != PreparerStatus.None) { throw new InvalidOperationException("Preparation already run."); } if (IndexForInstallerLoader == null) { throw new InvalidOperationException("Read-only index loader is not set."); } m_CallbackSet = callbackSet; m_Context = context; Status = PreparerStatus.Running; IndexForInstallerLoader.Load(m_Owner.InstallerIndexPath, new LoadAssetIndexForInstallerCallbackSet { OnFailure = OnLoadInstallerIndexFailure, OnSuccess = OnLoadInstallerIndexSuccess, }, null); }