File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1- [gd_scene load_steps =2 format =3 uid ="uid://e1hnqdibrys" ]
1+ [gd_scene load_steps =3 format =3 uid ="uid://e1hnqdibrys" ]
22
33[ext_resource type ="Script" path ="res://scripts/network_manager.gd" id ="1_jbx0p" ]
4+ [ext_resource type ="Script" path ="res://scripts/who_am_i.gd" id ="2_20yil" ]
45
56[node name ="Init" type ="Node" ]
67
@@ -26,3 +27,4 @@ offset_bottom = 23.0
2627grow_horizontal = 2
2728text = "Hello World!"
2829horizontal_alignment = 1
30+ script = ExtResource ("2_20yil" )
Original file line number Diff line number Diff line change 1+ extends Label
2+
3+ # Called when the node enters the scene tree for the first time.
4+ func _process (_delta : float ) -> void :
5+ self .text = "[%s ] %s " % ["SERVER" if OS .has_feature ("dedicated_server" ) else "CLIENT" , multiplayer .get_unique_id ()]
You can’t perform that action at this time.
0 commit comments