예제 #1
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);
                }
            }
        }