Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Script Issue

Discussion in 'Scripting' started by Alighier661, Jan 24, 2020.

  1. Alighier661

    Alighier661

    Joined:
    Jan 16, 2020
    Posts:
    3
    Hi, I'm trying to make my character look around simply, but there's some problem in my script can someone help me?
     

    Attached Files:

    • eze.png
      eze.png
      File size:
      142.1 KB
      Views:
      308
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,748
    First: don't put irrelevant polls on posts.

    Second: when you post code, post it in [code ]code tags[/code]

    Third: Your { curly brackets } are an absolute mess in your script. There should be a { at the end of line 5 and the } on line 10 shouldn't be there. More generally, look at any example script, and compare where their curly brackets are compared to yours.
     
    Joe-Censored likes this.
  3. Alighier661

    Alighier661

    Joined:
    Jan 16, 2020
    Posts:
    3
    Thank you, sorry for the inconvenience!