From 4bf74d0d7e246d1ec9de42e73ea70aba7d260f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Borks?= Date: Mon, 4 Mar 2024 17:37:27 -0300 Subject: [PATCH] fix: remove unitask dependency (#31) * update unity to 2023.2.9f1 * remove unused unitask using statement * fix loaded scene count reference --- .../Runtime/Utilities/TaskExtensions.cs | 1 - .../Tests/Runtime/SceneLoaderTests.cs | 2 +- ProjectSettings/ProjectVersion.txt | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Packages/mygamedevtools-scene-loader/Runtime/Utilities/TaskExtensions.cs b/Packages/mygamedevtools-scene-loader/Runtime/Utilities/TaskExtensions.cs index 37cfdd9..6e350df 100644 --- a/Packages/mygamedevtools-scene-loader/Runtime/Utilities/TaskExtensions.cs +++ b/Packages/mygamedevtools-scene-loader/Runtime/Utilities/TaskExtensions.cs @@ -1,7 +1,6 @@ using System; using System.Threading; using System.Threading.Tasks; -using Cysharp.Threading.Tasks; namespace MyGameDevTools.SceneLoading { diff --git a/Packages/mygamedevtools-scene-loader/Tests/Runtime/SceneLoaderTests.cs b/Packages/mygamedevtools-scene-loader/Tests/Runtime/SceneLoaderTests.cs index 00db93a..682816e 100644 --- a/Packages/mygamedevtools-scene-loader/Tests/Runtime/SceneLoaderTests.cs +++ b/Packages/mygamedevtools-scene-loader/Tests/Runtime/SceneLoaderTests.cs @@ -107,7 +107,7 @@ public IEnumerator TearDown() yield return SceneLoaderTestUtilities.UnloadManagerScenes(m); yield return SceneLoaderTestUtilities.UnloadRemainingScenes(); - Assert.AreEqual(1, UnityEngine.SceneManagement.SceneManager.sceneCount); + Assert.AreEqual(1, UnityEngine.SceneManagement.SceneManager.loadedSceneCount); } [UnityTest] diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index a8671c9..0eb2c62 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 2023.2.7f1 -m_EditorVersionWithRevision: 2023.2.7f1 (0a9195b3d453) +m_EditorVersion: 2023.2.9f1 +m_EditorVersionWithRevision: 2023.2.9f1 (0c9c2e1f4bef)