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

feat(武器系统): 添加武器资源管理并在非调试版本中初始化紫色水晶武器

在ComponentManager中添加武器资源管理功能,支持从指定目录加载武器资源
对于非调试版本的游戏,自动为玩家初始化紫色水晶武器
This commit is contained in:
2025-12-14 14:44:03 +08:00
parent 2c422f186e
commit ba1be5fb5e
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -122,6 +122,10 @@ func _ready():
if isPlayer():
if displayName == MultiplayerState.playerName:
UIState.player = self
if !OS.is_debug_build():
for i in weaponStore.get_children():
i.free()
weaponStore.add_child(ComponentManager.getWeapon("PurpleCrystal").instantiate())
for i in weaponStore.get_children():
i.hide()
weapons.append(i)