private IEnumerator RoomMeshLoaded_Coroutine() { yield return(new WaitForSeconds(Constants.Thresholds.ExpectedTimeToLoadRoomMesh)); LayerSwitcher.ChangeMeshLayer(); CentralProcessor.SetMaterials(); }
public static void UpdateRenderMethodUsed(bool startup = false) { int numFiles = Directory.GetFiles(Constants.Folders.ClippedRoomTextureFolderPath).Length; bool updatedLessThanTextureThreshold = numFiles < Constants.Thresholds.TextureThreshold; if (updatedLessThanTextureThreshold != Constants.Thresholds.LessThanTextureThreshold || startup) { CentralProcessor.SetMaterials(); AttachPrefab(); } Constants.Thresholds.LessThanTextureThreshold = numFiles < Constants.Thresholds.TextureThreshold; }