Input Class

Hi all

I’m writing a simple JS script to capture player input and I keep getting errors stating that, for example, GetButtonDown is not a member of Input. Doesn’t matter what function I try and use, according to the scripting reference, I get the appropriate error.

Thanks

Don’t name your scripts the same thing as Unity classes.

–Eric

Okay, thanks. How does that cause the errors I am getting?

P.S.
I realize now that I had named my script Input, which is probably why Unity had a problem with my script. I have changed the name and now all is good!

Thanks again