hold修闪烁

This commit is contained in:
SoulliesOfficial
2025-05-10 14:27:10 -04:00
parent c5e8908b47
commit 9e65c7eea0
13 changed files with 1870 additions and 243 deletions

View File

@@ -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);
}
}