Add skybox, fix world map, temporarily break level load to demo stuff

This commit is contained in:
2022-08-14 16:37:55 -07:00
parent dd76b8b9fe
commit fd1cfa36d5
26 changed files with 2704 additions and 695 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Scampz.GameJam.Assets.Scripts
{
public class TerrainTypeFinder : MonoBehaviour
{
public static TerrainType Find()
{
var sceneCount = SceneManager.sceneCount;
var scenes = new List<Scene>();
for (var i = 0; i < sceneCount; ++i)
scenes.Add(SceneManager.GetSceneAt(i));
if (scenes.Any(x => x.name.Contains("Temple")))
return TerrainType.Temple;
if (scenes.Any(x => x.name.Contains("Grass")))
return TerrainType.Grass;
if (scenes.Any(x => x.name.Contains("Sand")))
return TerrainType.Sand;
return TerrainType.Temple;
}
}
}