Пример #1
0
 private void Update()
 {
     //hexMapEditor = hexMapEditor.GetComponent<HexMapEditor>();
     if (
         Input.GetMouseButton(0) &&
         !EventSystem.current.IsPointerOverGameObject()
         )
     {
         currentHexCoordinates = hexMapEditor.HandleInput(1);
         Debug.Log(currentHexCoordinates.ToString());
         GetHexGridInfo();
     }
 }
Пример #2
0
 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();
     }
 }