public void TurnPressedUpPlacers(bool bEnable) { foreach (GameObject gb in _Cells) { if (gb != null) { ChessPressUpPlacer pp = gb.GetComponentInChildren <ChessPressUpPlacer> (); pp.enabled = bEnable; } } }
public void ResetPressedUpPlacers() { foreach (GameObject gb in _Cells) { if (gb != null) { ChessPressUpPlacer pp = gb.GetComponentInChildren <ChessPressUpPlacer> (); pp.ResetPressed(); } } }
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); } }