mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
2722a123ca
- 调整子弹碰撞体大小和位置 - 修改动画效果,简化动画轨道 - 移除未使用的AI函数 - 添加子弹颜色继承效果
11 lines
291 B
GDScript
11 lines
291 B
GDScript
extends BulletBase
|
|
class_name ParrierBullet
|
|
|
|
func hitBullet(bullet: BulletBase):
|
|
if BulletTool.canDamage(bullet, launcher):
|
|
var eff = EffectController.create(ComponentManager.getEffect("Parry"), position)
|
|
eff.modulate = bullet.modulate
|
|
eff.shot()
|
|
bullet.tryDestroy()
|
|
tryDestroy()
|