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

refactor(追踪系统): 统一使用getTrackingAnchor方法获取追踪目标位置

修改多个子弹脚本和EntityBase,使用统一的getTrackingAnchor方法获取追踪目标位置
在BulletBase中增加目标有效性检查
调整Wave配置和Rooster武器顺序
This commit is contained in:
2025-09-06 14:11:14 +08:00
parent 95db9deb3c
commit 936b2ba200
7 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -9,4 +9,4 @@ func ai():
canDamageSelf = !(timeLived() >= traceTime)
PresetAIs.forward(self, rotation)
if timeLived() < traceTime:
PresetAIs.trace(self, launcher.currentFocusedBoss.position, 0.05)
PresetAIs.trace(self, launcher.currentFocusedBoss.getTrackingAnchor(), 0.05)