public void UnselectCell(HexCoord hc) { CellSelection sel = hc.GetComponentInChildren <CellSelection> (); _SelectedCells.Remove(sel); }
public void CancelSelection() { foreach (GameObject gb in _Cells) { CellSelection cellSel = gb.GetComponentInChildren <CellSelection> (); if (cellSel != null) { cellSel.SelectionOFF(); } } }
public void TurnCellBlock(bool bBlock) { foreach (GameObject gb in _Cells) { CellObjCtrl ctrl = gb.GetComponent <CellObjCtrl> (); CellSelection cellSel = gb.GetComponentInChildren <CellSelection> (); bool bSelect = cellSel.IsSelected(); if (ctrl != null && bSelect) { ctrl.SetBlock(bBlock); } } }