Skippable intro

This commit is contained in:
Marco 2025-02-24 21:54:20 +01:00
commit d96d662c78
4 changed files with 26 additions and 21 deletions

View file

@ -75,7 +75,7 @@ public partial class GlobalState : Node
// // Update current scene here too
// CurrentScene = GetTree().Root.GetChild(-1);
if (startData is not null)
if (startData is not null && GameManager.Instance is not null)
{
// Call deferred if it gives issues
DeferredAddStartDataToGameManager(startData);
@ -86,7 +86,7 @@ public partial class GlobalState : Node
private void DeferredAddStartDataToGameManager(MapStartDataResource resource)
{
GameManager.Instance.ApplyMapStartData(resource);
GameManager.Instance?.ApplyMapStartData(resource);
}
private ColorRect CreateFader()