Question by
BruteAsura · Apr 14, 2020 at 02:27 PM ·
errorerror messageerror-building-player
Type or namespace definition error pops up everytime, I did everything Brackey did on the video '2D Movement in Unity' and it still doesn't work
Can you please help me fix this error and tell me why is it issued
Here's the script:
public class CharacterMovement : MonoBehaviour
public CharacterController2D controller;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
private void Update()
Input.GetAxisRaw("Horizontal")
}
Comment
If you're looking for help with a video tutorial, you should post a link to that tutorial too.
Even without it, it seems like you have not copied the code exactly. There are multiple missing braces { } for the class definition and the Update()
method...
Your answer
![](https://koobas.hobune.stream/wayback/20220612231243im_/https://answers.unity.com/themes/thub/images/avi.jpg)