I’ve entered the same code as Ivan in the video but I’m getting an error from unity.
assets/scritps/playercontroller.cs(15,43): error cs1525: Invalid expression term ‘)’
Here’s the code I wrote and that was in the video.
rb = GetComponent<RigidBody 2D>(); (FYI, RigidBody2D as written in the video gave me an error because unity places a space between RigidBody and 2D in the “get component” section.
It’s giving an error for the close parenthesis. Any ideas what needs to be fixed?