ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <1f66344f2f89470293d8b67d71308c07>:0)


์ผ๋‹จ ์ฝ”๋“œ๋Š”


0ebcc222c1d32ca74cbec5b058c12a3af5cea17a02c44be74f7f5243


19b5d935c6d32aa220afd8b236ef203e7c0904daffa607ea



์ด๊ฒŒ ์žˆ๋Š”๋ฐ ์—ฌ๊ธฐ์„œ CardDataBase์—์„œ๋Š” Debug.log๋กœ cardList[0].id๊ฐ™์€ ๊ฑฐ ๋‹ค ํ˜ธ์ถœํ•ด๋„ ๋ฌธ์ œ๊ฐ€ ์—†์—ˆ์–ด
๊ทธ๋Ÿฐ๋ฐ ๊ผญ thisCard์—์„œ thisCard[0] = CardDataBase.cardList[0];๋ถ€๋ถ„์ด๋ž‘ id = thisCard[0].cardId; ๋ถ€๋ถ„์—์„œ ๊ณ„์† OutofRange์—๋Ÿฌ๊ฐ€ ๋‚˜๋Š”๋ฐ ๋ญ๊ฐ€ ๋ฌธ์ ค๊นŒ?????
ํ˜น์‹œ ๋ชฐ๋ผ์„œ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ์ˆœ์„œ๋„ Card -> CardDataBase -> ThisCard๋กœ ๋ฐ”๊ฟ”๋ดค๋Š”๋ฐ ๊ทธ๋ž˜๋„ ๊ณ„์† ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•ด...
DataBase์—์„œ ํŒŒ์ผ ์ฝ์–ด ์˜ค๋Š” ๊ฑด ์—๋Ÿฌ ๋‹ค ํ•ด๊ฒฐํ•œ ์ƒํƒœ์ธ๋ฐ ๋‹ค๋ฅธ ์Šคํฌ๋ฆฝํŠธ์—์„œ ํ˜ธ์ถœํ•˜๋ฉด ์—๋Ÿฌ๊ฐ€ ๋‚˜... ๋ญ๊ฐ€ ๋ฌธ์ œ์ธ์ง€ ๋ชจ๋ฅด๊ฒ ์–ด.....




ThisCard.Start () (at Assets/Scripts/ThisCard.cs:40)

ThisCard.Start () (at Assets/Scripts/ThisCard.cs:46)