Error, missing brackets. Any ideas?

It looks like i have them all. I’m very new to c#, so sorry if i missed something.

using UnityEngine;
using UnityEngine.InputSystem;

public class PlayerMovement : MonoBehaviour
{
    
    private Rigidbody rb; 
    private float movementX;
    private float movementY;

    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        rb = GetComponent<Rigidbody>();
    }

    void OnMove(InputValue movementValue)
    {
        Vector2 movementVector = movementValue.Get<Vector2>(); 
        movementX = movementVector.x; 
        movementY = movementVector.y; 
    }
    private void FixedUpdate() 
    {
        Vector3 movement = new Vector3 (movementX, 0.0f, movementY);
        rb.AddForce(rb.AddForce(movement);); 
    }
}

Errors have a line and character position number that point you to where it is. You didn’t post the errors, but I assume they’re pointing you to the end of line 26 in the code you posted.

1 Like