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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user