Answer the question
In order to leave comments, you need to log in
How to get current character animation?
void Update()
{
if(Input.GetKey (KeyCode.UpArrow)) {
anim.SetInteger ("Number", 2);
} else {
anim.SetInteger ("Number", 1);
}
}
if (shit.gameObject.tag == "Enemy1") {
anim.SetInteger ("Number", 3);
Invoke("reloadLevel", 1);
}
if(Input.GetKey (KeyCode.UpArrow)) {
anim.SetInteger ("Number", 2);
} else if//(anim.GetInteger != 3) { ???
anim.SetInteger ("Number", 1);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question