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

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

                case 1:
                    animator.Play("MBisonScissorKicksForward", 0);
                    animator.SetInteger("scissorKicksKickType", 1);
                    break;

                default:
                    animator.Play("MBisonScissorKicksRoundhouse", 0);
                    animator.SetInteger("scissorKicksKickType", 2);
                    break;
                }
                chargeSystem.SetBackCharged(false);
                chargeSystem.ResetBackChargedProperties();
                chargeSystem.ResetBackCharged();
            }
        }
    }
 void BalrogCompletesDashRushes(string punchName, int punchType)
 {
     if (sharedProperties.GetForwardPressed && sharedProperties.GetDownPressed)
     {
         Debug.Log("dashed low");
         if (animator.GetBool("isAttacking") == false)
         {
             character.AttackState();
             animator.Play("BalrogDashLow" + punchName + "StartUp", 0);
         }
         animator.SetTrigger("dashLowInputed");
     }
     else if (sharedProperties.GetForwardPressed)
     {
         Debug.Log("dashed straight");
         if (animator.GetBool("isAttacking") == false)
         {
             character.AttackState();
             animator.Play("BalrogDashStraight" + punchName + "StartUp", 0);
         }
         animator.SetTrigger("dashStraightInputed");
     }
     animator.SetInteger("dashRushPunchType", punchType);
     chargeSystem.SetBackCharged(false);
     chargeSystem.ResetBackChargedProperties();
 }
Ejemplo n.º 3
0
    void AIKickRushesShortOrForward()
    {
        int randNum = Random.Range(0, 10);

        if (AIcontrols.GetConditionsSpecialAttack())
        {
            animator.SetTrigger("kickRushInputed");
            if (animator.GetBool("isAttacking") == false)
            {
                character.AttackState();
                if (randNum < 8)
                {
                    animator.Play("BalrogKickRushShortStartUp", 0);
                    animator.SetInteger("dashRushPunchType", 0);
                }
                else
                {
                    animator.Play("BalrogKickRushForwardStartUp", 0);
                    animator.SetInteger("dashRushPunchType", 1);
                }
                chargeSystem.SetBackCharged(false);
                chargeSystem.ResetBackChargedProperties();
                chargeSystem.ResetBackCharged();
            }
        }
    }