update
This commit is contained in:
+5
-6
@@ -664,12 +664,11 @@ func remote_set_position(authority_position):
|
||||
|
||||
@rpc("any_peer", "call_local")
|
||||
func display_message(message):
|
||||
$Bubble.show()
|
||||
$Bubble/Message.show()
|
||||
$Bubble/Message.text = str(message)
|
||||
await get_tree().create_timer(3).timeout
|
||||
$Bubble.hide()
|
||||
$Bubble/Message.hide()
|
||||
# Send message to the main scene's message bar instead of player bubble
|
||||
var main = get_tree().get_root().get_node_or_null("Main")
|
||||
if main and main.has_method("add_message_to_bar"):
|
||||
var player_name = $Name.text.split("\n")[0] if $Name else str(name)
|
||||
main.add_message_to_bar(player_name, message)
|
||||
|
||||
func initialize_random_goals(_size: int, min_value: int, max_value: int, null_count: float) -> Array[int]:
|
||||
goals.clear()
|
||||
|
||||
Reference in New Issue
Block a user