if(Input.GetKeyDown(“left ctrl”))
{
anim.SetBool(“Roll”, true);
WaitForSeconds (1);
anim.SetBool(“Roll”, false);
}
It Says That error CS0119: Expression denotes a type', where a
variable’, value' or
method group’ was expected
if(Input.GetKeyDown(“left ctrl”))
{
anim.SetBool(“Roll”, true);
WaitForSeconds (1);
anim.SetBool(“Roll”, false);
}
It Says That error CS0119: Expression denotes a type', where a
variable’, value' or
method group’ was expected
Try changing
if(Input.GetKeyDown("left ctrl"))
to
if(Input.GetKeyDown(KeyCode.LeftControl))