Im trying to do the Rollaball tutorial in Unity and am following all instructions but dont know how to fix this error:
AssetsMaterialsScriptsPlayerController.cs(23,32): error CS1061: ‘Vector2’ does not contain a definition for ‘Y’ and no accessible extension method ‘Y’ accepting a first argument of type ‘Vector2’ could be found (are you missing a using directive or an assembly reference?)
(the same error also applies for X)
image of script
br0d is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.