// Start is called before the first frame update void Start() { instansce = this; cells = new Dictionary <int[], Cell>(); for (int i = 0; i < cellParent.childCount; ++i) { Cell cell = cellParent.GetChild(i).GetComponent <Cell>(); cells.Add(new int[] { cell.row, cell.column }, cell); //cells[cell.row] = } }
bool CheckSameColor(int index) { CellMamager c = CellMamager.instansce; if (c.cells.ContainsKey(row_Plus_keys[index])) { if (colorKind == c.cells[row_Plus_keys[index]].colorKind) { return(true); } } return(false); }