Beispiel #1
0
        private IEnumerator RoomMeshLoaded_Coroutine()
        {
            yield return(new WaitForSeconds(Constants.Thresholds.ExpectedTimeToLoadRoomMesh));

            LayerSwitcher.ChangeMeshLayer();
            CentralProcessor.SetMaterials();
        }
Beispiel #2
0
        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;
        }