private void Update() { //hexMapEditor = hexMapEditor.GetComponent<HexMapEditor>(); if ( Input.GetMouseButton(0) && !EventSystem.current.IsPointerOverGameObject() ) { currentHexCoordinates = hexMapEditor.HandleInput(1); Debug.Log(currentHexCoordinates.ToString()); GetHexGridInfo(); } }
private void Update() { //hexMapEditor = hexMapEditor.GetComponent<HexMapEditor>(); if ( Input.GetMouseButtonUp(0) && !EventSystem.current.IsPointerOverGameObject() ) { currentHexCoordinates = hexMapEditor.HandleInput(1); Debug.Log(currentHexCoordinates.ToString()); GetHexGridInfo(); SetCitys(firstMap.MAXCITY); SetPortal(firstMap.MAXPORTAL); SetVillage(firstMap.MAXVILLAGE); //GetHexCellList(); } }