ai 插件demo

This commit is contained in:
2026-10-01 07:37:29 +08:00
parent e2a833536f
commit bd8c1c9a21
162 changed files with 17548 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
extends StaticBody2D
signal gong_struck
var enabled: bool = true
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _on_health_damaged(_amount: float, _knockback: Vector2) -> void:
if not enabled:
return
animation_player.play(&"struck")
gong_struck.emit()
enabled = false