Ejemplo n.º 1
0
    private void FloodGroundLevel()
    {
        var gridPosition = LowestGridPosition();

        var nearbyEmptyPositions = _worldPlane.GetNearbyEmptyPositionsStream(gridPosition);

        foreach (var position in nearbyEmptyPositions)
        {
            var waterBlock = NewShallowWater().GetComponentInChildren <Block>();
            _worldPlane.AddAndPositionBlock(waterBlock, position);
            waterBlock.ShortFreeze();
        }
    }