- Home /
Question by
AshAl1 · Dec 22, 2015 at 08:56 AM ·
scripting problemanimatoranimations
How to paly different blend tree animation when the same key is pressed?
I have to blend trees. First one is Locomotion. Second one is Bow Locomotion. I want to transit between these two blend trees when the same key is pressed (Key E).
I implemented this code but it cancels itself. Any way to do it.
public bool Bow = false;
void Update()
{
if(input.GetKey(KeyCode.E))
{
anim.setBool("Bow",true);
}
else
{
anim.setBool("Bow",false);
}
}
Comment