拾起物品同步

This commit is contained in:
2026-10-03 18:48:04 +08:00
parent 0dcfb88bfe
commit 3d23804fa5
10 changed files with 359 additions and 86 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=5 format=3]
[gd_scene load_steps=6 format=3]
[ext_resource type="Script" path="res://world/items/carryable.gd" id="1_carryable"]
[ext_resource type="SceneReplicationConfig" path="res://world/items/carryable_sync.tres" id="2_sync"]
[sub_resource type="BoxMesh" id="BoxMesh_body"]
size = Vector3(0.6, 0.6, 0.6)
@@ -22,3 +23,6 @@ surface_material_override/0 = SubResource("StandardMaterial3D_box")
[node name="Collision" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_body")
[node name="Sync" type="MultiplayerSynchronizer" parent="."]
replication_config = ExtResource("2_sync")