Hello there!
I have an issue regarding GetComponent<'Rigidbody2D>() for launching the ball. Despite the code being identical to the one in the course, the line above is recognized as an error.
Hovering over it indicates that: “An object reference is required for the non-static field method or property.”
Similarly, unity’s console return "Assets\Scripts\Ball.cs(32,13): error CS0120: An object reference is required for the non-static field, method, or property ‘Component.GetComponent()’.
Here is the whole code:
Any help would be very appreciated ^^