佩佩初版流程跑通

This commit is contained in:
2024-08-14 18:13:43 +08:00
parent 067cbf6f23
commit 4f4d0fa13c
10 changed files with 7489 additions and 219 deletions
+19
View File
@@ -52,6 +52,25 @@ namespace AibisDream
isLoading = false;
}
}
public IEnumerator UnloadSceneAsync(string sceneToUnload)
{
if (isLoading)
{
yield return null;
}
else
{
isLoading = true;
if (currentScene == sceneToUnload)
{
yield return Addressables.UnloadSceneAsync(_loadHandle, true);
currentScene = null;
}
isLoading = false;
}
}
}
}