mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-13 15:17:13 +08:00
refactor(子弹系统): 将子弹前进逻辑提取到PresetsAI类中
将多个子弹类型的forward调用统一到PresetsAI类中,提高代码复用性 删除LockLauncher.gd文件及部分场景文件中冗余的fields配置
This commit is contained in:
@@ -8,4 +8,4 @@ func register():
|
||||
func ai():
|
||||
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1 * clamp((traceTime - timeLived()) / traceTime, 0, INF))
|
||||
canDamageSelf = !(timeLived() >= traceTime)
|
||||
forward(Vector2.from_angle(rotation))
|
||||
PresetsAI.forward(self, rotation)
|
||||
|
||||
Reference in New Issue
Block a user