When I try and use
this.GetComponent<Rigidbody2D>(2f, 10f).velocity
in Unity 5 it gives me a compiler error that says, “Assets/Scripts/Ball.cs(23,9): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement”.
Please correct me if I just typed the code wrong.