1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 16:31:54 +08:00

feat(子弹): 为扫帚炮添加追踪开关并调整相关参数

- 在BroomGun中添加canTrace导出变量控制追踪功能
- 调整Broom子弹的碰撞体大小和位置
- 修改EnergyBlock中Broom子弹的速度倍率从2改为3
- 在BroomGun动画中添加canTrace状态控制
This commit is contained in:
2026-05-01 12:50:27 +08:00
parent 6d51795c54
commit c3e5e81a61
4 changed files with 38 additions and 7 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
extends BulletBase
class_name BroomGun
@export var canTrace: bool = true
func shake():
CameraManager.shake(2000, 200)
func ai():
PresetBulletAI.trace(self , launcher.currentFocusedPosition, 0.05)
if canTrace:
PresetBulletAI.trace(self , launcher.currentFocusedPosition, 0.05)