Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Answers

  • MrSlugMrSlug Member
    edited May 2020

    Hey @PandaMan,

    If you look in the bottom left of your unity window, the inspector tells you what the source of the problem is.

    ”expected ;” means that you’ve forgotten to add a semicolon at the end of a line. You can see which line is missing the semicolon as errors appear in the lines after it. (The red underlined words)

    Add a semi colon to xRotation -= mouseY.

    You also have a comma at the end of the next line instead of a semicolon. ; indicates the end of a line of code, which C# requires.

    You also need to add another semicolon at the end of your transform.localRotation line.

    Make those changes and it should be working just fine.

    Be sure to reply if you need any more help, just @MrSlug

    Good luck!

    Slug

Sign In or Register to comment.