generated from Depra-Inc/Template.Package.Unity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v0.0.6] Added dependencies; Fix for unloading
- Loading branch information
1 parent
bc82cb7
commit 802275d
Showing
19 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// © 2023-2024 Nikolay Melnikov <[email protected]> | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Depra.Loading.Curtain; | ||
using Depra.Loading.Operations; | ||
using Depra.Scenes.Definitions; | ||
using Depra.Scenes.Exceptions; | ||
using Depra.Scenes.Operations; | ||
using UnityEngine.SceneManagement; | ||
|
||
namespace Depra.Scenes | ||
namespace Depra.Scenes.Services | ||
{ | ||
public sealed class SceneChange : ISceneChange | ||
{ | ||
|
@@ -47,9 +49,8 @@ Task ISceneChange.Load(SceneDefinition scene, IEnumerable<ILoadingOperation> add | |
|
||
async Task ISceneChange.Unload(SceneDefinition scene, CancellationToken token) | ||
{ | ||
var operations = new[] { new SceneLoadingOperation(scene, OperationDescription.Default(scene.Name)) }; | ||
ILoadingCurtain cleanCurtain = new CleanLoadingCurtain(); | ||
await cleanCurtain.Load(operations, token); | ||
var operations = new[] { new SceneUnloadingOperation(scene, OperationDescription.Default(scene.Name)) }; | ||
await new CleanLoadingCurtain().Load(operations, token); | ||
} | ||
|
||
Task ISceneChange.Reload(IEnumerable<ILoadingOperation> addOperations, CancellationToken token) => | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters