mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:45:33 +00:00
Skippable intro
This commit is contained in:
parent
bab0152ec3
commit
d96d662c78
4 changed files with 26 additions and 21 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue