VoxelBuilder.FuncPtr DoWhat() { VoxelBuilder.FuncPtr funptr; switch (voxelBuilder.GetOperation()) { case EditOperation.Use: funptr = voxelBuilder.UseNode; break; case EditOperation.NotUse: funptr = voxelBuilder.NotUseNode; break; default: funptr = voxelBuilder.ReverseNode; break; } return(funptr); }