Exemple #1
0
    public WallObstacle(WallObstacleScriptableObject source)
    {
        bottomLeftAnchorPosition =
            source.obstacle.bottomLeftAnchorPosition + new Vector2(source.extraXOffset, 0);

        obstacleSize = source.obstacle.obstacleSize;
    }
 public FloorBuilder(Transform parent,
                     float widht,
                     float height,
                     float thickness,
                     WallObstacleScriptableObject door,
                     params WallObstacleScriptableObject[] windows)
 {
     floorParent = new GameObject().transform;
     floorParent.SetParent(parent, false);
 }