spawning chests in csg boxes, working on making them root of scene so they aren't cleared with the scene on exit
This commit is contained in:
@@ -22,11 +22,6 @@ func _ready() -> void:
|
||||
GameGlobals.chests_spawned += 1
|
||||
serial_label.text = "#" + str(serial_number).pad_zeros(4)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func hit(dam):
|
||||
health -= dam
|
||||
if !open and health <= 0:
|
||||
|
||||
Reference in New Issue
Block a user