diff --git a/Plugins/Depra.IoC.Locator.dll b/Plugins/Depra.IoC.Locator.dll index 4573a2e..6dd1d9d 100644 Binary files a/Plugins/Depra.IoC.Locator.dll and b/Plugins/Depra.IoC.Locator.dll differ diff --git a/Plugins/Depra.IoC.QoL.dll b/Plugins/Depra.IoC.QoL.dll index 28de7d3..c0f4c8e 100644 Binary files a/Plugins/Depra.IoC.QoL.dll and b/Plugins/Depra.IoC.QoL.dll differ diff --git a/Plugins/Depra.IoC.dll b/Plugins/Depra.IoC.dll index a43c3cb..ffbdc05 100644 Binary files a/Plugins/Depra.IoC.dll and b/Plugins/Depra.IoC.dll differ diff --git a/Runtime/Scenes/MultiSceneProject.cs b/Runtime/Scenes/MultiSceneProject.cs index fe6e3cd..80b9fd0 100644 --- a/Runtime/Scenes/MultiSceneProject.cs +++ b/Runtime/Scenes/MultiSceneProject.cs @@ -6,7 +6,6 @@ using Depra.IoC.Activation; using Depra.IoC.Composition; using Depra.IoC.QoL.Builder; -using Depra.IoC.QoL.Scope; using Depra.IoC.Scope; using Depra.SerializeReference.Extensions; using UnityEngine.SceneManagement; @@ -33,7 +32,7 @@ private void OnActiveSceneChanged(Scene arg0, Scene arg1) [MethodImpl(MethodImplOptions.AggressiveInlining)] private void OnSceneLoaded(Scene nextScene) { - if (TryFindEntryPoint(nextScene, out var entryPoint) == false) + if (!TryFindEntryPoint(nextScene, out var entryPoint)) { return; } @@ -46,8 +45,8 @@ private void OnSceneLoaded(Scene nextScene) } var sceneContainer = containerBuilder.Build(); - var combinedScope = new CombinedScope(_rootScope, sceneContainer.CreateScope()); - entryPoint.Compose(combinedScope); + var sceneScope = sceneContainer.CreateScope(_rootScope); + entryPoint.Compose(sceneScope); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/package.json b/package.json index 976f60e..7a9e83b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.depra.bootstrap.unity", - "version": "0.2.14", + "version": "0.2.15-pre.4", "displayName": "Depra.Bootstrap", "description": "", "unity": "2022.3",