From 015711c09956d4099b12a4bc607c9899e4d3ed67 Mon Sep 17 00:00:00 2001 From: Yogi <1273750265@qq.com> Date: Fri, 10 Jan 2025 12:25:50 +0800 Subject: [PATCH] debug --- Assets/Scripts/UI/GamePanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/UI/GamePanel.cs b/Assets/Scripts/UI/GamePanel.cs index c925182..10f4fb4 100644 --- a/Assets/Scripts/UI/GamePanel.cs +++ b/Assets/Scripts/UI/GamePanel.cs @@ -42,7 +42,7 @@ public class GamePanel : MonoBehaviour private void OnSwitchComponent(ComponentConfig componentConfig, int componentIndex) { Debug.Log("OnSwitchComponent"); - if (spawnedTypewriters == null || this.componentConfigName == null) + if (spawnedTypewriters == null || this.componentConfigName == null || componentConfig.组件描述.IsNullOrEmpty()) return; if (!spawnedTypewriters.TryGetValue(this.componentConfigName, out var typewriter)) {