Otro problem

NO entiendo que significa el error cs 1003
lo estaría queriendo corregir y no puedo

esta es la línea del o de los errores:
rigidbody GetComponent <“rigidbody”>();

Este es mi script:
{
public float Velocity;
private new Rigidbody rigidbody;
// Start is called before the first frame update
void Start();

    rigidbody GetComponent <"rigidbody">();


// Update is called once per frame
void Update()
{
    float horizontal = Input.GetAxisRaw("Horizontal");
    float vertical = Input.GetAxisRaw("Vertical");
    if (horizontal !=0 || vertical!=0) 
    {
        Vector3 direction = (transform.foward * vertical + transform.right * horizontal).normalized;
    }
    rigidbody.velocity = direction * Velocity;
}

}
please, si alguien puede decirme que hacer… se lo agradezco mucho, sinceramente estuve practicando bastante y todavía me cuesta mucho.

rigidbody GetComponent <"rigidbody">();

is wrong! it should be:

rigidbody = GetComponent<Rigidbody>();

Also, The declaration of the variable direction is inside an if block, which means it only exists within that block and won’t be available for the rest of the Update function. To fix this, declare the direction variable outside of the if block:

Vector3 direction = Vector3.zero; // Declare the variable outside the if block

if (horizontal != 0 || vertical != 0) 
{
    direction = (transform.forward * vertical + transform.right * horizontal).normalized;
}
rigidbody.velocity = direction * Velocity;