Exemple #1
0
        public void UpdateHealth(Vector3i position, float health)
        {
            _meshBuilder.Clear();
            _mesh.Clear();

            _meshBuilder.AddCube(position, GetSubmeshID(health));
            _meshBuilder.Apply(_mesh);
        }
Exemple #2
0
 void UpdateBlockMesh()
 {
     _meshBuilder.Apply(_filter.sharedMesh);
 }