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 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(); } } }