1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(特效): 添加血雨效果及关联逻辑

为狐狸爪子弹添加血雨特效,当攻击公鸡角色时触发。同时新增相关资源文件和粒子系统配置。
This commit is contained in:
2025-11-16 16:10:19 +08:00
parent e47390333f
commit a27e36a384
5 changed files with 78 additions and 2 deletions
+5 -2
View File
@@ -5,8 +5,11 @@ func register():
attackCooldownMap[0] = 200
attackCooldownMap[1] = 6000
hit.connect(
func(_damage: float, _bullet: BulletBase, _crit: bool):
EffectController.create(ComponentManager.getEffect("FeatherFall"), texture.global_position).shot()
func(_damage: float, bullet: BulletBase, _crit: bool):
if bullet is DogCircle:
EffectController.create(ComponentManager.getEffect("FeatherFall"), texture.global_position).shot()
elif bullet is FoxZhua:
EffectController.create(ComponentManager.getEffect("BloodFall"), texture.global_position).shot()
)
func ai():
texture.play("walk")