Ejemplo n.º 1
0
    void AIHeadStomps()
    {
        int randNum = Random.Range(0, 3);

        if (AIcontrols.GetConditionsSpecialAttack())
        {
            animator.SetTrigger("headStompInputed");
            if (animator.GetBool("isAttacking") == false)
            {
                character.AttackState();
                animator.Play("MBisonHeadStomp", 0);
                switch (randNum)
                {
                case 0:
                    animator.SetInteger("headStompKickType", 0);
                    break;

                case 1:
                    animator.SetInteger("headStompKickType", 1);
                    break;

                default:
                    animator.SetInteger("headStompKickType", 2);
                    break;
                }
                chargeSystem.SetDownCharged(false);
                chargeSystem.ResetDownChargedProperties();
                chargeSystem.ResetDownCharged();
            }
        }
    }
Ejemplo n.º 2
0
    void AIHeadButt()
    {
        int randNum = Random.Range(0, 3);

        if (AIcontrols.GetConditionsSpecialAttack())
        {
            animator.SetTrigger("headButtInputed");
            if (animator.GetBool("isAttacking") == false)
            {
                character.AttackState();
                switch (randNum)
                {
                case 0:
                    animator.Play("BalrogHeadButtJab", 0);
                    animator.SetInteger("dashRushPunchType", 0);
                    break;

                case 1:
                    animator.Play("BalrogHeadButtStrong", 0);
                    animator.SetInteger("dashRushPunchType", 1);
                    break;

                case 2:
                    animator.Play("BalrogHeadButtFierce", 0);
                    animator.SetInteger("dashRushPunchType", 2);
                    break;
                }
                chargeSystem.SetDownCharged(false);
                chargeSystem.ResetDownChargedProperties();
                chargeSystem.ResetDownCharged();
            }
        }
    }