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