private void CreateCorner(
            BreakoutGameController breakoutGameController,
            CornerConfig cornerConfig)
        {
            var wallGameObject = Instantiate(_cornerPiecePrefab);

            wallGameObject.name = _cornerPiecePrefab.name;
            var wall = wallGameObject.GetComponent <Wall>();

            var unitSize = breakoutGameController.UnitSize;

            var wallTransform = wallGameObject.transform;

            wallTransform.localPosition = new Vector3(cornerConfig.x * unitSize, 0.0f, cornerConfig.y * unitSize);
            wallTransform.localRotation = Quaternion.Euler(0.0f, cornerConfig.angle, 0.0f);
            wallTransform.localScale    = new Vector3(cornerConfig.size * unitSize, unitSize, cornerConfig.size * unitSize);

            breakoutGameController.AddWall(wall);
        }
        private void CreateWall(
            BreakoutGameController breakoutGameController,
            WallConfig wallConfig)
        {
            var wallGameObject = Instantiate(_wallPrefab);

            wallGameObject.name = _wallPrefab.name;
            var wall = wallGameObject.GetComponent <Wall>();

            wall.WallType = wallConfig.wallType;

            var unitSize = breakoutGameController.UnitSize;

            var wallTransform = wallGameObject.transform;

            wallTransform.localPosition = new Vector3(wallConfig.x * unitSize, 0.0f, wallConfig.y * unitSize);
            wallTransform.localRotation = Quaternion.Euler(0.0f, wallConfig.angle, 0.0f);
            wallTransform.localScale    = new Vector3(wallConfig.width * unitSize, unitSize, unitSize);

            breakoutGameController.AddWall(wall);
        }