public void UpdateHealth(Vector3i position, float health) { _meshBuilder.Clear(); _mesh.Clear(); _meshBuilder.AddCube(position, GetSubmeshID(health)); _meshBuilder.Apply(_mesh); }
void UpdateBlockMesh() { _meshBuilder.Apply(_filter.sharedMesh); }
public void UpdateHealth(Vector3i position, float health) { _meshBuilder.Clear(); _mesh.Clear(); _meshBuilder.AddCube(position, GetSubmeshID(health)); _meshBuilder.Apply(_mesh); }
void UpdateBlockMesh() { _meshBuilder.Apply(_filter.sharedMesh); }