My code:
The error.
There’s no Transform.rotate function. Remember, all functions are uppercase, all variables are lowercase (which is why it’s always a good idea to follow that convention when coding, it makes things much easier to understand).
–Eric
Please post your code in the message, rather than link, it’s a pain.
Read:
and
I think your error is in “h * Time.deltaTime”
Nope, that’s fine. Also GetKeyDown is not relevant. As I mentioned, the error is that there’s no Transform.rotate function.
–Eric