summaryrefslogtreecommitdiff
path: root/scripts/GameManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/GameManager.cs')
-rw-r--r--scripts/GameManager.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/GameManager.cs b/scripts/GameManager.cs
index 5898744..df93954 100644
--- a/scripts/GameManager.cs
+++ b/scripts/GameManager.cs
@@ -42,6 +42,7 @@ public partial class GameManager : Node
private void LoadMainMenu()
{
MainMenu menu = (MainMenu)SwitchToScene(mainMenuScene);
+ Stats.Instance.Clear();
menu.GameRequest += OnGameRequest;
}
@@ -72,6 +73,7 @@ public partial class GameManager : Node
private void OnNameSelect(string name)
{
+ Stats.Instance.PlayerName = name;
NewGame(name);
}