Merge branch 'HDRP'

main
Yogi 2025-01-10 12:42:13 +08:00
commit beb292c998
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class GamePanel : MonoBehaviour
private void OnSwitchComponent(ComponentConfig componentConfig, int componentIndex) private void OnSwitchComponent(ComponentConfig componentConfig, int componentIndex)
{ {
Debug.Log("OnSwitchComponent"); Debug.Log("OnSwitchComponent");
if (spawnedTypewriters == null || this.componentConfigName == null) if (spawnedTypewriters == null || this.componentConfigName == null || componentConfig..IsNullOrEmpty())
return; return;
if (!spawnedTypewriters.TryGetValue(this.componentConfigName, out var typewriter)) if (!spawnedTypewriters.TryGetValue(this.componentConfigName, out var typewriter))
{ {