Exemplo n.º 1
0
    void StartXiaya()
    {
        if (!IsStartXiaya)
        {
            return;
        }



        if (IsHitGround)
        {
            print("撞到地面!!");
            IsStartXiaya = false;
            //出下压的 烟尘技能
            _runNear.ZJStop();
            _gameBody.StopVSpeed();

            ShowHitSkillObj();
            _gameBody.isAcing = false;

            //需不需要 延迟 几秒 结束?  动作做完啊

            IsHitDownOnGround = true;


            return;
        }

        if (_runNear.ZhijieMoveToPoint(XiaYaTot, 0.5f, 4, false, true, 20))
        {
            ReSetAll();
            print("到达点!!!!!");
            _isGetOver = true;
        }


        if (_gameBody.GetDB().animation.lastAnimationName != XiayaACName)
        {
            _gameBody.isAcing = true;
            _gameBody.GetDB().animation.GotoAndStopByFrame(XiayaACName);
        }
    }