valencia-rail-rush/stamina.gd

11 lines
289 B
GDScript

extends Node
var enabled: bool = true
# Called every frame. 'delta' is the elapsed time since the previous frame.
func update() -> void:
if enabled:
print("Updating Stamina")
$"..".parent.max_stamina = $"..".parent.BASE_STAMINA * 2
$"..".parent.stamina = $"..".parent.max_stamina