启动的时候报错ArgumentException: An element with the same key already exists in the dictionary.System.Colle...
追评
启动的时候报错
ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary`2[System.String,Uniblocks.Chunk].Add (System.String key, Uniblocks.Chunk value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404)
Uniblocks.ChunkManager.RegisterChunk (Uniblocks.Chunk chunk) (at Assets/Uniblocks/UniblocksScripts/Core/ChunkManager.cs:90)
Uniblocks.Chunk.Awake () (at Assets/Uniblocks/UniblocksScripts/Core/Chunk.cs:52)
UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion)
Uniblocks.c__Iterator1:MoveNext() (at Assets/Uniblocks/UniblocksScripts/Core/ChunkManager.cs:323)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
Uniblocks.ChunkManager:StartSpawnChunks(Int32, Int32, Int32) (at Assets/Uniblocks/UniblocksScripts/Core/ChunkManager.cs:230)
Uniblocks.ChunkManager:TrySpawnChunks(Int32, Int32, Int32) (at Assets/Uniblocks/UniblocksScripts/Core/ChunkManager.cs:196)
Uniblocks.ChunkManager:SpawnChunks(Int32, Int32, Int32) (at Assets/Uniblocks/UniblocksScripts/Core/ChunkManager.cs:184)
Uniblocks.ChunkLoader:Update() (at Assets/Uniblocks/UniblocksScripts/PlayerInteraction/ChunkLoader.cs:39)
不知道是为什么,求解答
追评