Exemple #1
0
        public Block GetBlock(RaycastHit hit, bool adjacent = false)
        {
            var pos = Coord3.RaycastToBlock(hit, adjacent);

            return(GetBlock(pos));
        }
Exemple #2
0
        public ChunkSection PlaceBlock(RaycastHit hit, BlockData data, out Block block, bool adjacent = false)
        {
            var pos = Coord3.RaycastToBlock(hit, adjacent);

            return(PlaceBlock(pos, data, out block, true));
        }