public void RecalculateBounds() { int roomElementsCount = roomElements.Count; for (int i = 0; i < roomElementsCount; i++) { RoomElement elements = roomElements[i]; Volume volume = elements.GetComponent <Volume>(); volume.RecalculateBounds(); } }
public void RecalculateWorldPosition() { int roomElementsCount = roomElements.Count; for (int i = 0; i < roomElementsCount; i++) { RoomElement elements = roomElements[i]; Volume volume = elements.GetComponent <Volume>(); volume.RecalculateVoxelsWorldSpace(); } }