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

fix: 调整相机震动参数并优化组件管理器初始化

将BroomGun的相机震动持续时间从300调整为200,减少震动效果
移除WorldManager中手动调用ComponentManager.init()
在ComponentManager中添加静态初始化方法自动调用init()
This commit is contained in:
2026-05-10 06:23:29 +08:00
parent 62d7ecf93a
commit 5c8c3c32cd
3 changed files with 4 additions and 2 deletions
@@ -17,6 +17,9 @@ static var themes = {}
static var fieldTextures = {}
static var itemTextures = {}
static func _static_init() -> void:
init()
static func init():
for i in DirTool.listdir("res://components/Abstracts"):
abstracts[DirTool.getBasenameWithoutExtension(i)] = load(i)
-1
View File
@@ -11,7 +11,6 @@ func _ready():
tree = get_tree()
rootNode = self
spawner = $%spawner
ComponentManager.init()
spawner.spawn_function = justReturn
func _physics_process(delta):
runningTime += delta * 1000