List<GameObject> ObjectList = new List<GameObject>();


GameObject Clone;ย 

if(Object[0].gameObject == null)

{

return;

}

else

{

Clone = Object[0].gameObject;

}ย 


์œ„ ์ƒํƒœ์—์„œ ์ผ์ •ย ์‹œ๊ฐ„์ด ์ง€๋‚˜๋ฉด Spawner์—์„œย 

Object๋ฅผ ํ•˜๋‚˜ ์ƒ์„ฑํ•ด์„œ Clone์— ๋„ฃ์„๋ ค๊ณ ํ–ˆ๋Š”๋ฐ ์‹คํ–‰ํ•˜์ž๋งˆ์ž


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

Parameter name: index ์ด ์˜ค๋ฅ˜๊ฐ€ ๋œจ๋”๋ผ๊ตฌ์š”,,,

์ € ์ฝ”๋”ฉ์‹ค๋ ฅ์ด ๋งŽ์ด ๋ถ€์กฑํ•˜๊ณ  ๊ฒฝํ—˜์ด ์ ์–ด์„œ ๋ญ๊ฐ€ ๋ฌธ์ œ์ธ์ง€ ๋ชจ๋ฅด๊ฒ ์–ด์š”ย 

๋ฆฌ์ŠคํŠธ๊ฐ€ ๋น„์–ด์žˆ๋Š”๋ฐ ์ ‘๊ทผํ•ด์„œ ์˜ค๋ฅ˜๊ฐ€ ๋œฌ๊ฑฐ๋ผ ์ƒ๊ฐ์€ ๋“œ๋Š”๋ฐ ๊ทธ๋Ÿผ if()๋ฌธ์œผ๋กœ ์˜ค๋ฅ˜๋ฐฉ์ง€ํ•œ๊ฒŒ ์™œ ์•ˆ๋œ๊ฑธ๊นŒ์š”...