feat: 躲避敌人攻击功能
fix: 敌人初始化血条
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user