i keep being told i need to “fix all compiler errors before you can enter play mode”
Assets/code/paddle.cs(11,75): error CS1503: Argument #1' cannot convert double’ expression to type float' Assets/code/paddle.cs(11,75): error CS1502: The best overloaded method match for UnityEngine.Vector3.Vector3(float, float, float)’ has some invalid arguments
these are the errors i keep getting, its my first game and im trying to make a pong like game… Please help me
Please use code tags to make your code more readable in the forum:
The issue is “-8.06”. This is interpreted as double precision number by the compiler, but Vector3 consists of single precision numbers, meaning floats. In order to make it a float, you need to add an f. That would be “-8.06f”.