I get an error every time I try making a line with "new Vector3".
Example 1: private Vector3 playerPos = new Vector3 (0, .5, 0);
gives the error:
The best overload method match for 'UnityEngine.Vector3.Vector3(float, float, float)' has some invalid arguments
Example 2: playerPos = new Vector3 (Mathf.Clamp (xPos, -8, 8), .5, 0f);
gives the same error.
I followed the exact line from this video except my y's are different (my doing) and this isn't the first time I had a new Vector3 problem either.
I'm also using 5.0.1 (DX11 if that helps also) and I have not found any solutions. I am quite new to this but Copy and Pasting isn't very hard. (If I do his y axis I get the same problem so it's not that.) I really need help and thanks in advance.
playerPos = new Vector3(0, .5, 0);
\$\endgroup\$