public Sidewalk( GridOfGame _grid, GameObject obj, List< GameObject > _houses ) { _theGrid = _grid; _thePrefab = obj; houses = _houses; _allObject = new List<GameObject>() {}; }
// Use this for initialization void Start () { _theGrid = new GridOfGame(); _theGrid.new_level( level ); List< GameObject > _theHouses = new List<GameObject>() { _theHousePrefab_1, _theHousePrefab_2, _theHousePrefab_3, _theHousePrefab_4, _theHousePrefab_5, _theHousePrefab_6, _theHousePrefab_7, _theHousePrefab_8, _theHousePrefab_9, _theHousePrefab_10 }; _theSidewalk = new Sidewalk( _theGrid, _theSidewalkPrefab, _theHouses ); _theSidewalk.new_level(); }