Multy attack in unity : I'm trying to play 3 deferent attack in unit when the user press the same bottom multi time the attack will change. 
I try this code it's ok but filed to track the number of attack 

    if (Input.GetKeyDown(KeyCode.Q) && attTraking == 0)
        {
            anim.SetTrigger(attackOneToHash);
            attTraking = 1;
        }

        else if (Input.GetKeyDown(KeyCode.Q) && attTraking == 1)
        {
            anim.SetTrigger(attackTwoToHash);
            attTraking = 2;

        }

        else if (Input.GetKeyDown(KeyCode.Q) && attTraking == 2)
        {
            anim.SetTrigger(attackThreeToHash);
            attTraking = 0;
        }
Thane I add else and set attTraking to 0 the code failed to exit the first IF statement

Can any one help me plz :)

Thanks. 
