Update
This commit is contained in:
34
Assets/Scripts/GameSetup/Maze/MazeVisualProfile.cs
Normal file
34
Assets/Scripts/GameSetup/Maze/MazeVisualProfile.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Hallucinate.GameSetup.Maze
|
||||
{
|
||||
[CreateAssetMenu(fileName = "MazeVisualProfile", menuName = "Hallucinate/Maze/Visual Profile")]
|
||||
public class MazeVisualProfile : ScriptableObject
|
||||
{
|
||||
[Header("Prefabs")]
|
||||
public GameObject wallPrefab;
|
||||
public GameObject corridorPrefab;
|
||||
public GameObject processingPrefab;
|
||||
public GameObject pathPrefab;
|
||||
public GameObject startPrefab;
|
||||
public GameObject endPrefab;
|
||||
|
||||
[Header("Visualization Settings")]
|
||||
public float scale = 1f;
|
||||
public float animationDuration = 0.25f;
|
||||
|
||||
public GameObject GetPrefab(MazeCellType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
MazeCellType.Wall => wallPrefab,
|
||||
MazeCellType.Corridor => corridorPrefab,
|
||||
MazeCellType.Processing => processingPrefab,
|
||||
MazeCellType.Path => pathPrefab,
|
||||
MazeCellType.Start => startPrefab,
|
||||
MazeCellType.End => endPrefab,
|
||||
_ => null
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user