public MapInteraction(InteractionManager main, Map map, UnityObjectManager objectManager) { InteractionMain = main; _tileByIndex = GetTileByIndex(map); _tileLayermask = 1 << LayerMask.NameToLayer("UI"); _mapObject = objectManager.MapObject; }
public MapDisplay(GameSetup gameSetup, Map map, UnityObjectManager objectManager) { _mapUnityObject = objectManager.MapObject; _skyMat = gameSetup.SkyMat; Map = map; _dictionary = MakeTilesDictionary(map); }
private MapUnityObject MakeMapGameObject(GameObject mapPrefab, MapAssetSet mapAssets) { GameObject obj = GameObject.Instantiate(mapPrefab); MapUnityObject ret = obj.GetComponent <MapUnityObject>(); ret.Initialize(mapAssets); return(ret); }