/// <inheritdoc/> public AsyncOperationHandle <SceneInstance> ReleaseScene(ResourceManager resourceManager, AsyncOperationHandle <SceneInstance> sceneLoadHandle) { var unloadOp = new UnloadSceneOp(); unloadOp.Init(sceneLoadHandle); return(resourceManager.StartOperation(unloadOp, sceneLoadHandle)); }
/// <inheritdoc/> AsyncOperationHandle <SceneInstance> ISceneProvider2.ReleaseScene(ResourceManager resourceManager, AsyncOperationHandle <SceneInstance> sceneLoadHandle, UnloadSceneOptions unloadOptions) { var unloadOp = new UnloadSceneOp(); unloadOp.Init(sceneLoadHandle, unloadOptions); return(resourceManager.StartOperation(unloadOp, sceneLoadHandle)); }