Client/scripts/match/ui/player_money.gd
Kevin Schmidt a1334a1f46
All checks were successful
Quality Check / Linting (push) Successful in 6s
Quality Check / Linting (pull_request) Successful in 6s
Show Money, show hitpoints
2025-03-13 13:12:55 +01:00

10 lines
228 B
GDScript

extends RichTextLabel
func _ready() -> void:
MatchChannel.connect("on_money_update", on_money_update)
func on_money_update(msg: PlayerMoneyMessage) -> void:
print(msg.playerMoney, "test")
self.text = str(msg.playerMoney)