mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Global state singleton
This commit is contained in:
parent
a7f4f4eb28
commit
52d5adebcb
7 changed files with 73 additions and 5 deletions
|
|
@ -37,7 +37,8 @@ public partial class DebugMenu : Control
|
|||
private void ButtonOnPressed(string scene)
|
||||
{
|
||||
GD.Print("Button was pressed, now what");
|
||||
GetTree().ChangeSceneToFile(scene);
|
||||
GlobalState.Instance.GotoScene(scene);
|
||||
//GetTree().ChangeSceneToFile(scene);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue