I didnt pressed any key but yet unity shows that down arrow was pressed


I didnt press any key yet it showed I pressed

Hi,

Welcome to our community! :slight_smile:

Maybe there is a semicolon behind the if-condition. Or the code which is supposed to be inside the code block of the if-statement is not wrapped by curly brackets. Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?


See also:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms