Inventory, Weapons and refactoring

This commit is contained in:
anyreso 2024-05-07 14:21:10 +00:00
parent fa3e1f8d22
commit 39a9200e58
74 changed files with 1812 additions and 3895 deletions

13
systems/game_manager.gd Normal file
View file

@ -0,0 +1,13 @@
extends Node
## This is the mode currently used by the game.
var mode : Node:
set(new_mode):
# clean up previous mode
if mode != null:
mode.queue_free()
# keep reference to new mode
mode = new_mode
# setup new mode
if new_mode != null:
add_child(new_mode)