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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user