mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 16:05:54 +00:00
session settings
This commit is contained in:
parent
c20f90ab8b
commit
62aae84e8f
9 changed files with 37 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Threading.Tasks;
|
||||
using Cirno.Scripts.Resources;
|
||||
using Cirno.Scripts.Utils;
|
||||
using Godot;
|
||||
using GTweens.Builders;
|
||||
using GTweensGodot.Extensions;
|
||||
|
|
@ -12,6 +13,8 @@ public partial class GlobalState : Node
|
|||
|
||||
private ColorRect _fader { get; set; }
|
||||
|
||||
public SessionSettings SessionSettings { get; set; }
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
Instance = this;
|
||||
|
|
@ -80,6 +83,10 @@ public partial class GlobalState : Node
|
|||
// Call deferred if it gives issues
|
||||
DeferredAddStartDataToGameManager(startData);
|
||||
}
|
||||
|
||||
if (GameManager.Instance is not null) {
|
||||
GameManager.Instance.ApplySessionState(SessionSettings);
|
||||
}
|
||||
|
||||
FadeIn();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue