viewimage.php?id=2abcdd23dad63db0&no=24b0d769e1d32ca73ced8efa11d02831dd2ecabb386674d2cf3d2b24d0c36341b43912854a9cfd7c0a80eb601e5de66d274a7c6ee9d88d1d99118be0870fabc66af096eb

viewimage.php?id=2abcdd23dad63db0&no=24b0d769e1d32ca73ced8efa11d02831dd2ecabb386674d2cf3d2b24d0c36341b43912854a9cfd7c0a80eb601e5de66d274a7c6ee9d88d1dc841deecd158f6c7c2c3ab35



์•„๋‹ˆ ๋ฐฐ์น˜๋œ ์˜ค๋ธŒ์ ํŠธ๋“ค ์ค‘์— ํƒœ๊ทธ LightPlace์ธ ์• ๋“ค ๋ฐฐ์—ด๋กœ ๊ฐ€์ ธ์™€์„œ ๋ฆฌ์ŠคํŠธ๋กœ ๋ณ€ํ™˜ํ•˜๊ณ 

OnMouseButtonDown ๋ฐœ์ƒํ•˜๋ฉด


LightPlaceOn์‹คํ–‰ํ•ด์„œ


for๋ฌธ ๋Œ๋ ค์„œ 1๊ฐœ์‹ SetActive(true)๋Œ๋ฆฌ๋Š”๊ฑด๋ฐ


์•„๋ž˜๊ฐ™์€์• ๋Ÿฌ๋งŒ ์ฃผ๊ตฌ ์žฅ์ฐฝ ๋œจ๋„ค


๋””๋ฒ„๊ทธ.๋กœ๊ทธ(๋ผ์ดํŠธํ”Œ๋ ˆ์ด[i]); ํ•ด๋„ ๋˜‘๊ฐ™์€ ์—๋Ÿฌ๋œธ





ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <437ba245d8404784b9fbab9b439ac908>:0)
TowerMaker.LightPlaceOn () (at Assets/Scripts/UI/TowerMaker.cs:74)
TowerMaker.OnMouseDown () (at Assets/Scripts/UI/TowerMaker.cs:49)
UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32)