- Home /
multi animation by pressing one button ,Multi Animation
Hi how i can make many action or animations by pressing only one button 2 times or three times ? and her the script
if (Input.GetKey(KeyCode.S)) { anim.SetBool("punch", true); }
if (Input.GetKeyUp(KeyCode.S))
{
anim.SetBool("punch", false);
}
[1]: /storage/temp/157398-1.jpg
,Hi How i can make multiple action or animation while press only one button 2 time or three times ? and here the script : if (Input.GetKey(KeyCode.S)) { anim.SetBool("punch", true); }
if (Input.GetKeyUp(KeyCode.S))
{
anim.SetBool("punch", false);
}
1.jpg
(46.6 kB)
Comment