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

feat(效果系统): 为氧气火焰添加击退效果并优化效果控制器

- 在氧气火焰子弹配置中添加击退属性
- 将EffectController的parent参数类型从Node2D改为更通用的Node
- 在编译提示面板中预加载所有效果并设置透明度和音量
This commit is contained in:
2026-01-25 21:31:04 +08:00
parent e170dbee6d
commit 26ad071d53
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func shot():
await sound.finished
queue_free()
static func create(scene: PackedScene, spawnPosition: Vector2, parent: Node2D = null) -> EffectController:
static func create(scene: PackedScene, spawnPosition: Vector2, parent: Node = null) -> EffectController:
var cloned = scene.instantiate() as EffectController
cloned.global_position = spawnPosition
if parent: