Question by
Probix · Apr 21, 2018 at 11:10 PM ·
2dscripting problemerror
Rigibody2d.velocity error?
public float ThePowerOfWalking;
public float JumpingPower;
void Update () {
if (Input.GetKeyDown("D"))
GetComponent().velocity(JumpingPower, 0); }
It's saying a non-vocable member 'Rigibody2d.velocity' cannot be used as a method.
Sorry, I am inexperience with C# but I am trying to learn. Help would be appreciated.
Comment
Your answer
Follow this Question
Related Questions
Why do I keep getting this error? 1 Answer
Referencing another script error/problem 0 Answers
Instantiating object randomly withing the boundaries of an object. 0 Answers
Lives going to negative value 3 Answers