Exemplo n.º 1
0
        void Start()
        {
            hexMap   = new HexMap <int, bool, bool>(HexMapBuilder.CreateRectangularShapedMapOddRowsOneShorter(mapSize), null);
            hexMouse = gameObject.AddComponent <HexMouse>();
            hexMouse.Init(hexMap);

            InitMap();
            SetupCamera();
        }
Exemplo n.º 2
0
        private List <GameObject> reachableTilesMarkers; // the gameObjects we use to visualise which tiles are within movementRange

        void Start()
        {
            hexMap   = new HexMap <MyTile, MyEdge>(HexMapBuilder.CreateRectangularShapedMapOddRowsOneShorter(mapSize), null);
            hexMouse = gameObject.AddComponent <HexMouse>();
            hexMouse.Init(hexMap);

            InitMap();
            reachableTilesMarkers = new List <GameObject>();
            SetupCamera();
        }