1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-05 03:07:12 +08:00

feat(子弹): 为InfinitySword添加击中特效

在击中实体时创建血溅效果并隐藏粒子,同时修复ShootBlood场景的格式问题
This commit is contained in:
2026-04-03 19:37:51 +08:00
parent 473f16b5d6
commit 928050ef88
2 changed files with 5 additions and 2 deletions
@@ -10,3 +10,6 @@ func succeedToHit(_dmg: float, entity: EntityBase):
else:
implused.append(entity)
entity.impluse(Vector2.from_angle(rotation) * 1500)
var eff = EffectController.create(ComponentManager.getEffect("ShootBlood"), entity.position)
eff.particles.hide()
eff.shot()