Updated AddressableSceneOperation to fit the previous change.

This commit is contained in:
Karrar
2025-03-12 03:54:23 +03:00
parent d8021a33b4
commit 01fcd6547b
7 changed files with 3 additions and 3 deletions

View File

@@ -113,8 +113,8 @@ namespace Netick.Samples
// -- Build Scenes
// NetworkSceneHandler already implements exactly the code shown here, the reason we still included it in here is for demonstration purposes.
protected override AsyncOperation LoadBuildSceneAsync(int buildIndex, LoadSceneParameters loadSceneParameters) => SceneManager.LoadSceneAsync(buildIndex, loadSceneParameters);
protected override AsyncOperation UnloadBuildSceneAsync(Scene scene) => SceneManager.UnloadSceneAsync(scene);
protected override ISceneOperation LoadBuildSceneAsync (int buildIndex, LoadSceneParameters loadSceneParameters) => new BuildSceneOperation(SceneManager.LoadSceneAsync(buildIndex, loadSceneParameters));
protected override ISceneOperation UnloadBuildSceneAsync (Scene scene) => new BuildSceneOperation(SceneManager.UnloadSceneAsync(scene));
}
public static class AddressableSceneHandlerSandboxExtensions