Helpfull unity scripts
if( hit.transform.gameObject.tag == "Interact"){
Debug.Log("Colide with interact tile");
}
public enum TileSetType {Forest,Grassland,Housing};
[SerializeField] public TileSetType tileType;
private Dictionary<HexTile , GameObject> hexToGameObjectMap;
public void SpawnUnitAt(GameObject PlayerUnitPrefab, int q, int r)
{
GameObject myHex = hexToGameObjectMap[GetHexAt(q,r)];
//Spawn player in
Instantiate(PlayerUnitPrefab, myHex.transform.position, Quaternion.identity, myHex.transform);
}