1
Fork 0
mirror of https://github.com/Steffo99/octogem.git synced 2024-10-16 20:17:26 +00:00
octogem/Assets/Scripts/BaseObjects.cs

24 lines
569 B
C#

using UnityEngine;
using System.Collections.Generic;
class BaseObjects : MonoBehaviour
{
public GameObject baseTile;
public List<TileType> editorTileTypes;
public Dictionary<string, TileType> tileTypes;
private void Awake()
{
//Fill the tileTypes dictionary
tileTypes = new Dictionary<string, TileType>();
foreach(TileType tileType in editorTileTypes)
{
if(tileType == null)
{
continue;
}
tileTypes.Add(tileType.name, tileType);
}
}
}