Error cs1022

HELLO TO ALL. I SEEMS THAT I KEEP GETTING THE COMPILER ERROR cs1022. th

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CharacterController : MonoBehaviour
{
    public float jumpheight;
    public float groundDeceleration;
    Vector2 velocity;
    public float MoveSpeed = 5f;
    public float walkAcceleration = 2f;
   Animator animator;
   SpriteRenderer sprite;
   Rigidbody2D rb;
   public float Movespeed;
   float Movement = (Input.GetAxisRaw("Horizontal"));
   void Start()
   {

       sprite = GetComponent<SpriteRenderer>();
       animator = GetComponent<Animator>();
       rb = GetComponent<Rigidbody2D>();
   }

  void FixedUpdate()
  {

        velocity.y += Physics2D.gravity.y * Time.deltaTime;
        velocity.x = Mathf.MoveTowards(velocity.x * MoveSpeed * walkAcceleration * Time.deltaTime);

    if(movement != 0 && Input.GetButtonDown("a") )
    {
       velocity.x = Mathf.MoveTowards(velocity.x * MoveSpeed * walkAcceleration * Time.deltaTime);
    }

     else if(movement != 0 && Input.GetButtonDown("d"))
    {
         velocity.x = Mathf.MoveTowards(velocity.x * MoveSpeed * walkAcceleration * Time.deltaTime);
    }
    else
    {
        velocity.x = Mathf.MoveTowards(velocity.x, 0, groundDeceleration * Time.deltaTime);
    }
     Collider2D[] collider = Physics2D.OverlapBoxAll(transform.position, boxCollider.size = 0);
    }
}
   }

any help is much appreciated.

@MattUuu

Error number alone doesn’t mean anything to most of us *I guess…

But if you had attached the actual error message, it would have been more helpful…

I googled your error message, and MS C# guide gives me this:

“A source-code file does not have a matching set of braces.”

Remove the brace on line 47.

The line 44 (OverlapBoxAll) is redundant as you don’t do anything with the results although this won’t produce an error, it’s just a waste of time.