示例#1
0
 public void TurnPressedUpPlacers(bool bEnable)
 {
     foreach (GameObject gb in _Cells)
     {
         if (gb != null)
         {
             ChessPressUpPlacer pp = gb.GetComponentInChildren <ChessPressUpPlacer> ();
             pp.enabled = bEnable;
         }
     }
 }
示例#2
0
 public void ResetPressedUpPlacers()
 {
     foreach (GameObject gb in _Cells)
     {
         if (gb != null)
         {
             ChessPressUpPlacer pp = gb.GetComponentInChildren <ChessPressUpPlacer> ();
             pp.ResetPressed();
         }
     }
 }
示例#3
0
        public bool TurnPressedUpPlacerAt(Hex pos, bool bEnable)
        {
            bool bExist =
                _HexToCells.ContainsKey(pos);

            if (bExist)
            {
                GameObject         cellobj = GetCellObjAt(pos);
                ChessPressUpPlacer pp      = cellobj.GetComponentInChildren <ChessPressUpPlacer> ();
                pp.enabled = bEnable;
                return(true);
            }
            else
            {
                return(false);
            }
        }