mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-23 12:02:30 +08:00
refactor: 替换PresetAIs为PresetBulletAI,优化子弹AI逻辑
This commit is contained in:
@@ -62,9 +62,9 @@ func _physics_process(_delta: float) -> void:
|
||||
var targetEntity = EntityTool.findClosetEntity(position, get_tree(),
|
||||
!launcher.isPlayer(),
|
||||
launcher.isPlayer(),
|
||||
[launcher] )
|
||||
[launcher])
|
||||
if is_instance_valid(targetEntity):
|
||||
PresetAIs.trace(
|
||||
PresetBulletAI.trace(
|
||||
self,
|
||||
targetEntity.getTrackingAnchor(),
|
||||
launcher.fields.get(FieldStore.Entity.BULLET_TRACE) / 10
|
||||
|
||||
Reference in New Issue
Block a user