mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
11 lines
294 B
GDScript
11 lines
294 B
GDScript
|
|
extends BulletBase
|
||
|
|
class_name ParrierBullet
|
||
|
|
|
||
|
|
func hitBullet(bullet: BulletBase):
|
||
|
|
if BulletTool.canDamage(bullet, launcher):
|
||
|
|
EffectController.create(ComponentManager.getEffect("Parry"), position).shot()
|
||
|
|
bullet.tryDestroy()
|
||
|
|
tryDestroy()
|
||
|
|
func ai():
|
||
|
|
PresetBulletAI.forward(self , rotation)
|