fix(): 修复重启后切换模式后相机丢失BUG,修复重启后UI绑定失效的BUG,将GameManager移动到Gameplay
This commit is contained in:
@@ -41,11 +41,17 @@ namespace Core
|
||||
public void LoadGameplay(string sceneName)
|
||||
{
|
||||
StartCoroutine(SwitchGameplay(sceneName));
|
||||
if (!isLoadGameplayUI)
|
||||
ReLoadUIScene();
|
||||
}
|
||||
|
||||
public void ReLoadUIScene()
|
||||
{
|
||||
if (isLoadGameplayUI)
|
||||
{
|
||||
StartCoroutine(LoadSceneAdditive("UIScene"));
|
||||
isLoadGameplayUI = true;
|
||||
StartCoroutine(UnloadScene("UIScene"));
|
||||
}
|
||||
StartCoroutine(LoadSceneAdditive("UIScene"));
|
||||
isLoadGameplayUI = true;
|
||||
}
|
||||
|
||||
private IEnumerator SwitchGameplay(string newScene)
|
||||
|
||||
Reference in New Issue
Block a user