Roll a Ball question (CS0103)
I have everything correctly, and I did everything I learned and saw in the video. But then error CS0103 keeps coming up, and it's on line 20... ?!?! Help please!!!!
Answer by AngryTilde · Nov 12, 2015 at 03:05 AM
The issue is you're trying to assign to a Method rather then call it your line 20 should look more like this:
rb.AddForce(movement);
which is known as a method call. (Your chosen IDE should distinguish between a variable, property and method through different symbols in its autocomplete functionality, and if in doubt methods are usually 'doing' phrases e.g AddForce, SetFloat, GetComponent).
Answer by OncaLupe · Nov 12, 2015 at 03:00 AM
Line 20 should read:
rb.AddForce(movement);
Also, next time please copy the whole error and not just the number, it can sometimes provide more context. Plus not everyone has the error numbers memorized.
Your answer
![](https://koobas.hobune.stream/wayback/20220612044802im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Issues With Touch Rotation code 0 Answers
Basic Water shader error message 6 Answers
Two error in code CS0619 and CS1061 2 Answers
"Failed to write a licence file". Annoying error. 1 Answer
C#- Activate Image effect Help 1 Answer