Check the argument types and format for Vector2.ClampMagnitude which is:
static Vector2 ClampMagnitude(Vector2 vector, float maxLength);
where the arguments should be of type Vector2 and a float.
You are providing three values to it instead of two.
Convert your first two values into a Vector2.
↧