Beispiel #1
0
        public void UnselectCell(HexCoord hc)
        {
            CellSelection sel =
                hc.GetComponentInChildren <CellSelection> ();

            _SelectedCells.Remove(sel);
        }
Beispiel #2
0
 public void CancelSelection()
 {
     foreach (GameObject gb in _Cells)
     {
         CellSelection cellSel = gb.GetComponentInChildren <CellSelection> ();
         if (cellSel != null)
         {
             cellSel.SelectionOFF();
         }
     }
 }
Beispiel #3
0
        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);
                }
            }
        }