佩佩初版流程跑通
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user