10 lines
258 B
GDScript
10 lines
258 B
GDScript
extends RichTextLabel
|
|
|
|
|
|
func _ready() -> void:
|
|
MatchChannel.connect("on_hitpoints_update", on_hitpoints_update)
|
|
|
|
|
|
func on_hitpoints_update(msg: PlayerHitpointsMessage) -> void:
|
|
print(msg.playerHitpoints, "test")
|
|
self.text = str(msg.playerHitpoints, "HP")
|