mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
refactor(Bullets): 优化Parrier子弹效果和动画
- 调整子弹碰撞体大小和位置 - 修改动画效果,简化动画轨道 - 移除未使用的AI函数 - 添加子弹颜色继承效果
This commit is contained in:
@@ -3,8 +3,8 @@ class_name ParrierBullet
|
||||
|
||||
func hitBullet(bullet: BulletBase):
|
||||
if BulletTool.canDamage(bullet, launcher):
|
||||
EffectController.create(ComponentManager.getEffect("Parry"), position).shot()
|
||||
var eff = EffectController.create(ComponentManager.getEffect("Parry"), position)
|
||||
eff.modulate = bullet.modulate
|
||||
eff.shot()
|
||||
bullet.tryDestroy()
|
||||
tryDestroy()
|
||||
func ai():
|
||||
PresetBulletAI.forward(self , rotation)
|
||||
|
||||
Reference in New Issue
Block a user