public static List<GameObject> CubeList = new List<GameObject> (); ์ฒ์์ ๋ฆฌ์คํธ๋ฅผ ์ด๋ ๊ฒ ์ ์ธํด์คฌ๋๋ฐ
๋ด๊ฐ ์ด ๋ฆฌ์คํธ๋ฅผ ์ด๋์ ์ธ๊ฑฐ๋๋ฉด OnCollisionEnter ์์์ cube = Instantiate(~) ๋ก ํ๋ฆฌํน์ ์์ฑํ๋ ๊ณผ์ ์์
์์ฑ๋ ํ๋ฆฌํน์ ๋ฆฌ์คํธ ์์ ์ถ๊ฐํ๋ ค๊ณ ํ๋๊ฑฐ๊ฑฐ๋ ?
Instantiate ๋ค์์ย CubeList.Add(cube) ํด์ฃผ๋ฉด ๋ฆฌ์คํธ์ ์ถ๊ฐ๋๋๊ฑฐ ๋ง์?
๋ค์ ์ถ๊ฐ๋ ๊ฑฐ์์