Hi,
This throws an error:
if (Input.GetKey(KeyCode.Alpha1))
{
weapon = 1;
}
from the scripting reference this looks ok, what am I doing wrong?[/code]
Hi,
This throws an error:
if (Input.GetKey(KeyCode.Alpha1))
{
weapon = 1;
}
from the scripting reference this looks ok, what am I doing wrong?[/code]
It doesn’t throw an error and works fine, but you should always say what the error you’re getting actually is. It’s coming from somewhere else in this case.
–Eric