[System.Serializable]
public class WallInfo
{
public GameObject wall;
public bool isFix; //๊ณ ์ •๋˜์—ˆ๋Š”์ง€
public bool isRotate; //ํšŒ์ „ํ–ˆ๋Š”์ง€
}



public class Player : MonoBehaviour
{
WallInfo[] wallInfo;
private Transform walls;

void Start()
{
wallInfo = new WallInfo[10];
for (int i = 0; i < 10; i++) { wallInfo[i].wall = walls.GetChild(i).gameObject; } //์—๋Ÿฌ๋‚จ
}
}


์ž๊พธ ๋„๋ ˆํผ๋Ÿฐ์Šค ๋œจ๋Š”๋ฐ... ํด๋ž˜์Šค๋Š” ์ ‘๊ทผ์•ˆ๋˜๋‚˜์š”?