Im getting 3 errors from this script
void Update () {
playerVelocity.x = Input.GetAxis("Horizontal") * WalkingSpeed;
if(Input.GetKeyDown(KeyCode.right))
{
playerVelocity.y = JumpingSpeed;
}
else
{
playerVelocity.y = rigidbody.velocity.y;
}
Here are the three errors
Assets/Scripts/PlayerScripts/PlayerController2D.cs(27,39): error CS0117: `UnityEngine.KeyCode' does not contain a definition for `right'
Assets/Scripts/PlayerScripts/PlayerController2D.cs(27,20): error CS1502: The best overloaded method match for `UnityEngine.Input.GetKeyDown(string)' has some invalid arguments
Assets/Scripts/PlayerScripts/PlayerController2D.cs(27,20): error CS1503: Argument `#1' cannot convert `object' expression to type `string'
Any help is appreciated and merry christmas