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

Binary file not shown.

Binary file not shown.

View File

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

View File

@@ -1,6 +1,6 @@
{ {
"name": "com.karrar.netick", "name": "com.karrar.netick",
"version": "0.13.26", "version": "0.13.27",
"displayName": "Netick", "displayName": "Netick",
"description": "A networking solution for Unity", "description": "A networking solution for Unity",
"unity": "2021.3", "unity": "2021.3",