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

        ret.Initialize(mapAssets);
        return(ret);
    }