I am having this error:
Assets/Scripts/PlayerController.cs(48,44): error CS1061: ‘Transform’ does not contain a definition for ‘foward’ and no accessible extension method ‘foward’ accepting a first argument of type ‘Transform’ could be found (are you missing a using directive or an assembly reference?)
I have tried to solve this problem myself and have looked at forums for this error and I still cannot solve this problem can someone help me solve the error
You sure? What does your error say now? Because earlier it pretty clearly said “foward” which is a misspell.
If there’s a different error now, it simply means the compiler got further in the compilation process and reached another error (which already existed).
Assets/Scripts/PlayerController.cs(48,44): error CS1061: ‘Transform’ does not contain a definition for ‘Foward’ and no accessible extension method ‘Foward’ accepting a first argument of type ‘Transform’ could be found (are you missing a using directive or an assembly reference?)
these are the lines of code that are causing the error (sorry if its an easy fix I’m new to this) public Transform orientation; rigidBody.AddForce(orientation.Foward * wallrunforce * Time.deltaTime);
At this point I think you are trolling. This is an extremely simple fix to an extremely simple problem. Your IDE would have pointed this out to you already and could have been easily corrected without coming onto the forums for help.
That bold, red number is the line number. If you take a look at the error message, it tells you which line has the error. Open up your code and check that line.