예제 #1
0
 public void OnAddButtonClick()
 {
     if (xInput && yInput && !string.IsNullOrEmpty(xInput.text) && !string.IsNullOrEmpty(yInput.text))
     {
         int x = int.Parse(xInput.text);
         int y = int.Parse(yInput.text);
         hexGrid.AddNewCell(x, y);
     }
     else
     {
         Debug.LogError("please input xInput and yInput");
     }
 }