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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user