Example #1
0
        void CaculateAbsorbing(CellObjCtrl cctrl)
        {
            CellObjCtrl backCtrl = CellObjCtrlUtils.GetNbCellObjCtrl(cctrl, 3);
            CCAbsorb    ccab     = backCtrl.GetComponentInChildren <CCAbsorb> ();

            ccab.Invoke("ConfigAbsorbing", _AbsorbingComputeDelay);
        }
Example #2
0
        private void TurnDragRotatorForCellObjCtrl(CellObjCtrl ctrl, bool bON)
        {
            if (ctrl == null)
            {
                return;
            }
            ChessDragRotator dragRotator =
                ctrl.GetComponentInChildren <ChessDragRotator> ();

            dragRotator.enabled = bON;
        }
Example #3
0
        // 开关转向操作UI
        // 目前,只允许刚落入的棋子能够随意转向
        public bool IsTurnDirUION(Hex coord)
        {
            CellObjCtrl cctrl = _GridCtrl.GetCellCtrlAt(coord);

            if (cctrl == null)
            {
                return(false);
            }
            ChessDragRotator dragRoter =
                cctrl.GetComponentInChildren <ChessDragRotator> ();

            return(dragRoter.enabled);
        }
Example #4
0
        private bool TurnDragRotatorUI(Hex coord, bool bEnable)
        {
            CellObjCtrl cctrl = _GridCtrl.GetCellCtrlAt(coord);

            if (cctrl == null)
            {
                return(false);
            }

            ChessDragRotator dragRoter =
                cctrl.GetComponentInChildren <ChessDragRotator> ();

            dragRoter.enabled = bEnable;
            return(true);
        }