Need help, i want to make combo attack, but it just 2 attacking, but i need 4 attacking.
this my script :
if (Input.GetButtonDown("Fire1")) {
if (!fired) {
fired = true;
timer = 0.0f;
comboCount = 0.0f;
animator.SetBool("Attack1", true); //this my attack1
Debug.Log("I served a punch!");
} else
{
comboCount++;
if (comboCount == comboNum)
{
animatio.SetBool("Attack2", true); //this my attack2, but i need more,,
Debug.Log("I did a combo!");
}
// how i can to add more animation for attack, i need to make 2 more attack
}
}
if (fired)
{
timer += Time.deltaTime;
if (timer > fireRate)
{
fired = false;
}
}