private IEnumerator DrawFluid(FluidPropagator propagator) { yield return(new WaitForSeconds(0.5f)); foreach (var items in propagator.Start()) { var chunkAddresses = new HashSet <ChunkAddress>(); foreach (var item in items) { dimension.Blocks[item.Position] = item.Block; chunkAddresses.Add(ChunkAddress.FromPosition(item.Position)); } foreach (var address in chunkAddresses) { terrainRenderer.Redraw(address); } yield return(new WaitForSeconds(0.5f)); } }
public void Draw(Vector3 position) { Draw(ChunkAddress.FromPosition(position)); }
public bool IsDrawed(Vector3 position) { return(IsDrawed(ChunkAddress.FromPosition(position))); }