private bool CheckLineFull(int height) { for (var x = 0; x < _level.Size.x; x++) { for (var z = 0; z < _level.Size.z; z++) { if (!_level.CheckHasBlock(new Vector3Int(x, height, z))) { return(false); } } } return(true); }
public bool CheckOverlappingLevelBlocks(Vector3Int position, Quaternion rotation, BlockShapeData shape) { return(_shapeUtil.IterateBlockSections(position, rotation, shape) .Any(p => _levelModel.CheckHasBlock(p))); }