Esempio n. 1
0
    private void LoadBuildingBlocks()
    {
        foreach (var target in levelData.blocks)
        {
            switch (target.blockType)
            {
            case BuildingBlockType.Default:
                buildingPlacement.PlaceFloor(board.FindNodeAt(target.pos).gameObject);
                break;

            case BuildingBlockType.Elevator:
                buildingPlacement.PlaceElevator(board.FindNodeAt(target.pos).gameObject, target.rot);
                break;

            default:
                break;
            }
        }
    }