10 lines
228 B
GDScript
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)
|