Help, for some reason it said error CS1002 on this line:

This is the same as your post here in that’s it’s just not valid C# code at all.

Clearly it should be more like:

Vector2 aimDirection = mousePosition - rb.position;

Please use code-tags when posting code.

Thanks.

1 Like