コード例 #1
0
ファイル: HexGridCtrl.cs プロジェクト: shacleff/LianQiClient
        public void UnselectCell(HexCoord hc)
        {
            CellSelection sel =
                hc.GetComponentInChildren <CellSelection> ();

            _SelectedCells.Remove(sel);
        }
コード例 #2
0
ファイル: HexGridCtrl.cs プロジェクト: shacleff/LianQiClient
 public void CancelSelection()
 {
     foreach (GameObject gb in _Cells)
     {
         CellSelection cellSel = gb.GetComponentInChildren <CellSelection> ();
         if (cellSel != null)
         {
             cellSel.SelectionOFF();
         }
     }
 }
コード例 #3
0
ファイル: HexGridCtrl.cs プロジェクト: shacleff/LianQiClient
        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);
                }
            }
        }