Right now i have it set up in my game that when you hit the “Z” button it plays a certain animation that brings red cubes forward and when you hit “X” the blue ones go back and the red ones come forth. What i want is to some how just have to hit one button and each time it will alternate between loading the first or second animation.
As you can see i have to hit different button. but i want it so that say every second hit
of the Z key will play the second animation. Hope you guys know what i mean. Anyways here’s
what im using now.
function Update () {
if (Input.GetButtonDown ("Fire1"))
{
animation.Play("Retryback");
}
if (Input.GetButtonDown("Fire2"))
{
animation.Play("Retryforward");
}
}
you're welcome, glad I could help!!! -Grady
– GradesFisher