mirror of
https://github.com/Steffo99/octogem.git
synced 2024-11-22 04:54:18 +00:00
25 lines
569 B
C#
25 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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|