mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
8acb08fd14
添加扫帚子弹、扫帚炮和扫帚回旋镖三种新子弹类型 包含子弹脚本、音效、动画和特效资源 修改EnergyBlock实体以支持新子弹的攻击逻辑 更新子弹基类添加销毁信号
9 lines
197 B
GDScript
9 lines
197 B
GDScript
extends BulletBase
|
|
class_name BroomBoomerangBullet
|
|
|
|
func ai():
|
|
PresetBulletAI.forward(self , rotation)
|
|
speed -= 0.5
|
|
if speed < 0 && position.distance_to(launcher.position) < 100:
|
|
tryDestroy()
|