fix the overlapping input

This commit is contained in:
2025-01-31 16:00:32 +08:00
parent 552d32ff70
commit cf389135c0
4 changed files with 220 additions and 82 deletions
+7 -3
View File
@@ -18,7 +18,11 @@ func _ready():
# Set this tree's actor
actor = parent
# Wait a frame to ensure all nodes are ready
await get_tree().process_frame
enabled = parent.is_multiplayer_authority() and parent.is_bot
# Set up blackboard with initial values
if blackboard:
blackboard.set_value("action_points", parent.action_points)
blackboard.set_value("current_action", "idle")
blackboard.set_value("grab_position", parent.current_position) # Default grab position
blackboard.set_value("move_target", null)