Draggable2D _on_mouse_exited

This commit is contained in:
cakipaul 2025-07-14 18:46:43 +08:00
parent f9801e4b6f
commit efa95b3236

View File

@ -156,3 +156,8 @@ func _toggle_outline(display = true):
tween.tween_property(sprite.material, "shader_parameter/thickness", 1.0, 0.2)
else:
tween.tween_property(sprite.material, "shader_parameter/thickness", 0.0, 0.2)
func _exit_tree() -> void:
if touching:
_on_mouse_exited()