Dies ist eine alte Version des Dokuments!
Godot Components
Online-Doku
Contracts
func take_damage(damage: int) → void:
Globals.health -= damage
if Globals.health > 0:
get_tree().reload_current_scene()
godot:components
Dies ist eine alte Version des Dokuments!
func take_damage(damage: int) → void:
Globals.health -= damage
if Globals.health > 0:
get_tree().reload_current_scene()