void Start() { hexMap = new HexMap <int, bool, bool>(HexMapBuilder.CreateRectangularShapedMapOddRowsOneShorter(mapSize), null); hexMouse = gameObject.AddComponent <HexMouse>(); hexMouse.Init(hexMap); InitMap(); SetupCamera(); }
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(); }