mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-14 07:56:32 +00:00
✨ Inventory, Weapons and refactoring
This commit is contained in:
parent
f43056d251
commit
6df677eda7
70 changed files with 1812 additions and 3895 deletions
13
systems/game_manager.gd
Normal file
13
systems/game_manager.gd
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue