示例#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();
            }
        }
    }
 void BalrogCompletesHeadButt(string punchName, int punchType)
 {
     Debug.Log("headbutted");
     if (animator.GetBool("isAttacking") == false)
     {
         character.AttackState();
         animator.Play("BalrogHeadButt" + punchName, 0);
         animator.SetBool("isHeadButting", true);
     }
     animator.SetTrigger("headButtInputed");
     animator.SetInteger("dashRushPunchType", punchType);
     chargeSystem.SetDownCharged(false);
     chargeSystem.ResetDownChargedProperties();
 }
示例#3
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();
            }
        }
    }