Unexpected Symbol "||"

I’m getting this error when I typed this:

if (Input.GetButtonDown(“up”) || Input.GetButtonDown(“down”)) || Input.GetButtonDown(“left”) || Input.GetButtonDown(“right”))

error CS1525: Unexpected symbol )', expecting ;’ or }' and error CS1525: Unexpected symbol ||’

Here is my whole script.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bounce : MonoBehaviour {

float lerpTime;
float currentLerpTime;
float perc = 1;

Vector3 startPos;
Vector3 endPos;

void Update () 
{
	if (Input.GetButtonDown("up") || Input.GetButtonDown("down")) || Input.GetButtonDown("left") || Input.GetButtonDown("right"))
	{
		if(perc == 1)
		{
			lerpTime = 1;
			currentLerpTime = 0;
		}
	}
	startPos = gameObject.transform.position;

	if(Input.GetButtonDown("right") && gameObject.transform.position == endPos)
	{
		endPos = new Vector3(transform.position.x + 1, transform.position.y,transform.position.z);
	}
	if(Input.GetButtonDown("left") && gameObject.transform.position == endPos)
	{
		endPos = new Vector3(transform.position.x - 1, transform.position.y,transform.position.z);
	}
	if(Input.GetButtonDown("up") && gameObject.transform.position == endPos)
	{
		endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z + 1);
	}
	if(Input.GetButtonDown("down") && gameObject.transform.position == endPos)
	{
		endPos = new Vector3(transform.position.x, transform.position.y,transform.position.z - 1);
	}
	currentLerpTime += Time.deltaTime * 5.5F;
	perc = currentLerpTime / lerpTime;
	gameObject.transform.position = Vector3.Lerp (startPos, endPos, perc);
}

}

There is an extra parentheses after your “Input.GetButtonDown(“down”)” statement in if.

It should be :

 if (Input.GetButtonDown("up") || Input.GetButtonDown("down") || Input.GetButtonDown("left") || Input.GetButtonDown("right"))

Thanks! I’m trying it now!