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

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