title: Why am I getting a CS1001 error in my code?
body: <p>I am a complete novice at C# coding so this might be a dumb question, but I can't figure out why I keep getting this error from my Unity script. It says &quot;identifier expected,&quot; but as far as I know I already have an identifier?</p>
  <pre class="lang-cs prettyprint-override"><code>{
  
      public float moveSpeed = 5f;
  
      public Rigidbody2D rb;
  
      public string animator;
      public string movement;
  
      Vector2 (movement);
      
      // Update is called once per frame
      void Update()
      {
          movement.x = Input.GetAxisRaw(&quot;Horizontal&quot;);
          movement.y = Input.GetAxisRaw(&quot;Vertical&quot;);
  
          animator.SetFloat(&quot;Horizontal&quot;, movement.x);
          animator.SetFloat(&quot;vertical&quot;, movemnet.y);
          animator.SetFloat(&quot;Speed&quot;, movement.sqrMagnitude);
      }
  
      void FixedUpdate()
      {
          rb.MovePosition(rb.position + movement * moveSpeed * Time.fixedDeltaTime);
      }
  
  }
  </code></pre>