12 lines
135 B
GDScript
12 lines
135 B
GDScript
class_name PlayerStats
|
|
extends Node
|
|
|
|
signal damaged
|
|
|
|
@export var health: int = 6
|
|
|
|
|
|
func damage() -> void:
|
|
health -= 1
|
|
damaged.emit()
|