Im expiring the error CS1031 Type expected, can u tell me what I did wrong

using UnityEngine;

namespace SVS
{
public class AgentController : ‘MonoBehaviour, Input’

{
IInput input;

AgentMovement movement;

private void OnEnable()
{
input = GetComponent();
movement = GetComponent();
input.OnMovementDirectionInput += movement.HandleMovementDirection;
input.OnMovementInput += movement.HandleMovement;
}

private void OnDisable()
{
input.OnMovementDirectionInput -= movement.HandleMovementDirection;
input.OnMovementInput -= movement.HandleMovement;
}
}
}

remove the quote ’ ’ after class definition

1 Like

OH MY GOSH THANK U!!!

oh…now I have this
CS1003 syntax ‘,’ error expected

what is your code ?

The error message has a line number in it. Start by looking at that line, and compare it to example code around the internet.

After doing that, if you still can’t figure it out, share the updated code here (along with the entire error message) and we can help you. but please use code tags as described here to make your code more readable.

1 Like

in my opinion it’s just a simple synthax error