I have some code and i want it to say that i can jump if im in two states. I mainly use JS so im a newb at C#. I want it to say that I can jump when in “locoState” (locomotion so i am moving) and in “idleState” (when im in idle) As you can see in my script below that its only for “locoState” and i want to include idle. Hope i made my question clear and Thanks in Advance!
if (currentBaseState.nameHash == locoState)
{
if(Input.GetButtonDown("Jump"))
{
anim.SetBool("Jump", true);
}
}