mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Global state singleton
This commit is contained in:
parent
a7f4f4eb28
commit
52d5adebcb
7 changed files with 73 additions and 5 deletions
|
|
@ -168,7 +168,9 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
|
|||
_rightStickInput = Vector2.Zero;
|
||||
_isStrafing = false;
|
||||
|
||||
_gameManager = this.GetGameManager();
|
||||
_gameManager = GameManager.Instance;
|
||||
|
||||
//_gameManager = this.GetGameManager();
|
||||
_inventoryManager = this.GetInventoryManager();
|
||||
|
||||
_gameManager.GameStateChange += GameManagerOnGameStateChange;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue