示例#1
0
        public void EndHammer()
        {
            if (m_curTargetHex == null)
            {
                return;
            }

            float strength = 0;// UIManager.GetUIByType<UIGame>().StopSliderMoving() * c_strenghtSensitivity;

            //if (m_curTargetHex == GetHittingHex())
            {
                //if(strength > 0.95f)
                //{
                //    GameView.ShowTips("GOOD !!!");
                //}

                // 锤子
                CmdResponse.HammerKnock(null, strength);
            }
            //else
            //{
            //    m_curTargetHex = null;
            //    m_singleTargetHex = null;
            //}

            // 重置力度

            // 下一轮
            m_curTargetHex.OnHit(strength);
            HexManager.UpdateAllBalance();

            // 如果是强制砸落,则必须当前块掉落再进行下一轮
            if (!(m_curTargetHex.IsActive() && GameConf.ForceKill))
            {
                //
                if (GameStep != GameStep.GameOver)
                {
                    GameStep = GameStep.RandomOperation;

                    CmdResponse.CurrentPlayer(null, 0);
                }
                m_singleTargetHex = null;
            }

            m_curTargetHex = null;
        }