可复用玩家状态机

This commit is contained in:
2026-09-23 16:39:12 +08:00
parent 6355ac41a5
commit 40691e81b6
7 changed files with 291 additions and 130 deletions
+4
View File
@@ -1,6 +1,7 @@
[gd_scene format=4 uid="uid://bekuuw153mv03"]
[ext_resource type="Script" uid="uid://f5ptp3is4agf" path="res://character/player/player.gd" id="1_gtsfv"]
[ext_resource type="Script" uid="uid://roaqmma0vjon" path="res://character/player/player_animator.gd" id="3_g20gq"]
[ext_resource type="Texture2D" uid="uid://cq3awe0wjqsih" path="res://character/player/assets/Textures/colormap.png" id="3_gtsfv"]
[ext_resource type="SceneReplicationConfig" uid="uid://c4ubbxjfrrs47" path="res://character/player/player_sync.tres" id="3_wu8e1"]
@@ -2796,6 +2797,9 @@ skeleton = NodePath("..")
[node name="AnimationPlayer" type="AnimationPlayer" parent="Body/character-male-e2" unique_id=1443249442]
libraries/ = SubResource("AnimationLibrary_muffn")
[node name="PlayerAnimator" type="Node" parent="Body" unique_id=390989323]
script = ExtResource("3_g20gq")
[node name="Sync" type="MultiplayerSynchronizer" parent="." unique_id=1979575210]
replication_config = ExtResource("3_wu8e1")