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

fix(EffectController): 修复oneShot效果后未释放自身的问题

feat(EntityBase): 添加获取生命值百分比的方法
refactor(BulletBase): 重命名scene变量为parentScene以提高可读性
fix(BlueCrystal): 修正弹道追踪旋转计算错误
style(EffectBase): 调整场景文件格式和属性顺序
This commit is contained in:
2025-12-14 13:36:48 +08:00
parent 04dbd5d6db
commit b5edbc5b13
5 changed files with 11 additions and 8 deletions
+1
View File
@@ -24,6 +24,7 @@ func shot():
if oneShot:
await cloned.finished
cloned.queue_free()
queue_free()
static func create(scene: PackedScene, spawnPosition: Vector2, parent: Node2D = null) -> EffectController:
var cloned = scene.instantiate() as EffectController