Beispiel #1
0
    public void Generate()
    {
        //ルートオブジェクト作成
        if (rootGameObject == null)
        {
            rootGameObject = new GameObject(rootName);
        }

        gridGenerator.SetRootAndGridInfo(rootGameObject, cellTypes);
        gridGenerator.MakeGrid();

        cellTypes = gridGenerator.cellTypes;

        roadGenerator.SetRootAndGridInfo(rootGameObject, cellTypes);
        roadGenerator.MakeRoads();
        roadGenerator.MakeTrafficLights();
        CreateSidewalkAndGround();


        CreateHouse2x2();
    }