Пример #1
0
    private void PlayEndSwitch(string _animName)
    {
        if (m_animFuntion.IsTag("NormalAttack"))
        {
            m_characterMove.MoveStop();
        }

        switch (_animName)
        {
        case "attack_upper":
            m_playerState.PlayerStateJump();
            m_playerCrowdControlManager.SuperArmorOff();
            break;

        case "attack_downsmash":
            m_playerCrowdControlManager.SuperArmorOff();
            break;

        default:
            if (!m_playerState.IsPlayerGround())
            {
                m_playerState.PlayerStateDoubleJump();
            }
            break;
        }

        m_effectAnimFuntion.EffectOff();
        m_playerCrowdControlManager.OffAirStop();
    }
Пример #2
0
    IEnumerator MoveCoroutine()
    {
        m_bMove = true;
        m_controlManager.ImpenetrableOn();
        m_animFuntion.SetBool(m_animFuntion.hashBMove, true);

        while (true)
        {
            if (this.transform.localScale.x < 0)
            {
                m_characterMove.MoveLeft(m_playerInfo.fMoveSpeed);
            }
            else
            {
                m_characterMove.MoveRight(m_playerInfo.fMoveSpeed);
            }


            yield return(null);

            if (!m_bMove)
            {
                m_controlManager.ImpenetrableOff();
                m_animFuntion.SetBool(m_animFuntion.hashBMove, false);
                m_characterMove.MoveStop();
                yield break;
            }
        }
    }
Пример #3
0
 private void Move()
 {
     if (Input.GetAxisRaw("Horizontal") < 0)
     {
         m_animFuntion.SetBool(m_animFuntion.hashBMove, true);
         m_characterMove.MoveLeft(m_playerInfo.fMoveSpeed);
         m_underUI.transform.localScale = new Vector3(-1, 1, 1);
     }
     else if (Input.GetAxisRaw("Horizontal") > 0)
     {
         m_animFuntion.SetBool(m_animFuntion.hashBMove, true);
         m_characterMove.MoveRight(m_playerInfo.fMoveSpeed);
         m_underUI.transform.localScale = new Vector3(1, 1, 1);
     }
     else if (m_animFuntion.GetBool(m_animFuntion.hashBMove))
     {
         m_animFuntion.SetBool(m_animFuntion.hashBMove, false);
         m_characterMove.MoveStop();
     }
 }