hold修闪烁
This commit is contained in:
@@ -26,6 +26,14 @@ namespace Ichni.StartMenu
|
||||
|
||||
public ThemeBundleSelector themeBundleSelector;
|
||||
|
||||
public AsyncOperation loadEditor;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
loadEditor = SceneManager.LoadSceneAsync("EditorScene");
|
||||
loadEditor.allowSceneActivation = false;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (canvasGroup.interactable && Keyboard.current.escapeKey.wasPressedThisFrame)
|
||||
@@ -70,7 +78,7 @@ namespace Ichni.StartMenu
|
||||
.Subscribe(_ =>
|
||||
{
|
||||
Debug.Log("All AssetBundles are loaded. Switching scene.");
|
||||
SceneManager.LoadScene("EditorScene");
|
||||
loadEditor.allowSceneActivation = true;
|
||||
}).AddTo(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user