feat: 躲避敌人攻击功能

fix: 敌人初始化血条
This commit is contained in:
luke358
2026-05-18 16:10:19 +08:00
parent b6bf8ef5ba
commit 66452f1072
7 changed files with 45 additions and 10 deletions
+5
View File
@@ -258,5 +258,10 @@ offset_top = -90.0
offset_right = 50.0
offset_bottom = -70.0
[node name="FlashTimer" type="Timer" parent="." unique_id=2034069027]
wait_time = 0.2
one_shot = true
[connection signal="on_damaged" from="HurtboxComponent" to="." method="_on_hurtbox_component_on_damaged"]
[connection signal="on_health_changed" from="HealthComponent" to="HealthBar" method="_on_health_component_on_health_changed"]
[connection signal="timeout" from="FlashTimer" to="." method="_on_flash_timer_timeout"]