mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-05 22:25:54 +00:00
State persistance between scenes
This commit is contained in:
parent
1e38945f63
commit
35254935e4
13 changed files with 142 additions and 27 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using Godot;
|
||||
using System;
|
||||
using Cirno.Scripts.UI;
|
||||
using Godot.Collections;
|
||||
|
||||
public partial class MainMenu : CanvasLayer
|
||||
{
|
||||
|
|
@ -51,6 +52,7 @@ public partial class MainMenu : CanvasLayer
|
|||
{
|
||||
if (GameScene != null)
|
||||
{
|
||||
GlobalState.Session.NewSession();
|
||||
GlobalState.Instance.GotoScene(GameScene);
|
||||
//GetTree().ChangeSceneToFile(GameScene);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue