I'm trying to rotate the camera around the player character but when i use the if statement to see if the left or right arrows (Input name "Fire1") unity tells me that it cant convert an int to a bool. here's the code.
asked Jun 15 '11 at 05:42 PM
The question has been closed Jun 15 '11 at 09:37 PM by Joshua for the following reason:
You cannot do what you just did.
You have to specify what you are dealing with. Is it a button?(Input.GetButton(Down)) or a key(Input.GetKey(Down)) or a axis? When scripting you have to be specific it only dose what you tell it to do. It is like a dog, fun, cute and interesting, but persumably not the sharpest knife in the world.
answered Jun 15 '11 at 09:17 PM