I have a question over here. I have a key ‘e’, and a ‘die’ animation. When press ‘e’, die animation is played by this character. But I can only press ‘e’ after the ‘die’ animation has played finish. Is it possible for me to stack the animation ‘die’, without having to wait finish the whole animation length.
Thanks.
function Update()
{
property();
}
function property()
{
if(Input.GetKeyDown(KeyCode.E))
{
var die = animation["die"];
animation.Play("die");
die.wrapMode = WrapMode.Once;
}
}