Game state manager and restored inventory

This commit is contained in:
Marco 2025-06-25 15:36:50 +02:00
commit a0ec2f3d74
27 changed files with 1283 additions and 1175 deletions

View file

@ -9,6 +9,7 @@ using Cirno.Scripts.Resources;
using Godot.Collections;
using System.Threading.Tasks;
using Cirno.Scripts.Controllers;
using Cirno.Scripts.Utils;
public partial class PlayerMovement : CharacterBody2D, IDestructible
{
@ -157,7 +158,7 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
//_gameManager = this.GetGameManager();
_inventoryManager = this.GetInventoryManager();
_gameManager.GameStateChange += GameManagerOnGameStateChange;
GameStateManager.Instance.GameStateChange += GameManagerOnGameStateChange;
if (SelectorScene != null)
{