public void Make2(TMP_InputField bob) { GridH grid = Instantiate(prefab).GetComponent <GridH>(); if (int.TryParse(bob.text.Trim(), out int size)) { grid.width = size; grid.height = size; //grid.ManualCreate(); data = grid.GetSaveData(); saveh = size; saveW = size; } else { Debug.Log("not a number " + bob.text.Trim()); } PlayGame(); }
public GridSaveData(GridH grid) { width = grid.width; height = grid.height; tiles = grid.GetTileSaveData(); }