1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/BroomGun.gd
T
fallingshrimp c3e5e81a61 feat(子弹): 为扫帚炮添加追踪开关并调整相关参数
- 在BroomGun中添加canTrace导出变量控制追踪功能
- 调整Broom子弹的碰撞体大小和位置
- 修改EnergyBlock中Broom子弹的速度倍率从2改为3
- 在BroomGun动画中添加canTrace状态控制
2026-05-01 12:50:27 +08:00

11 lines
215 B
GDScript

extends BulletBase
class_name BroomGun
@export var canTrace: bool = true
func shake():
CameraManager.shake(2000, 200)
func ai():
if canTrace:
PresetBulletAI.trace(self , launcher.currentFocusedPosition, 0.05)