mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-07 20:27:13 +08:00
refactor(ComponentManager): 移除_ready中的init调用并优化初始化逻辑
移除ComponentManager.gd中冗余的_ready方法,改为在MakeFeed.gd中显式调用init 优化资源加载逻辑,确保在使用前完成初始化
This commit is contained in:
@@ -10,9 +10,6 @@ static var uiComponents = {}
|
||||
static var themes = {}
|
||||
static var itemTextures = {}
|
||||
|
||||
func _ready():
|
||||
init()
|
||||
|
||||
static func init():
|
||||
for i in DirTool.listdir("res://components/Bullets"):
|
||||
bullets[DirTool.getBasenameWithoutExtension(i)] = load(i)
|
||||
|
||||
Reference in New Issue
Block a user