mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 19:35:54 +00:00
Game state manager and restored inventory
This commit is contained in:
parent
f0f49f8fb4
commit
a0ec2f3d74
27 changed files with 1283 additions and 1175 deletions
|
|
@ -3,6 +3,7 @@ using System;
|
|||
using System.Linq;
|
||||
using Cirno.Scripts;
|
||||
using Cirno.Scripts.UI;
|
||||
using Cirno.Scripts.Utils;
|
||||
using Godot.Collections;
|
||||
|
||||
public partial class ItemsMenu : ItemList
|
||||
|
|
@ -53,7 +54,7 @@ public partial class ItemsMenu : ItemList
|
|||
InventoryManager.Instance.TryGetItem(item, out var lootItem);
|
||||
if (!lootItem.Item.Selectable) return;
|
||||
|
||||
GameManager.Instance.ChangeState(GameState.Playing);
|
||||
GameStateManager.Instance.ChangeState(GameState.Playing);
|
||||
|
||||
InventoryManager.Instance.UseItem(item);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue