Help me with code! im a newbie.

ok so im making a flappy bird game and this is my code the error isnt letting me close void update
it keeps telling me Unexpected expression term?? help
here is code also im not sure im posting this in the right place lol

using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour {

public float flyforce;
private Rigidbody2D rb;

// Use this for initialization
void Start () {
rb = GetComponent ();
}

// Update is called once per frame
void Update () {

fly ();

if (Input.GetButtonDown (“Fire1”).

}

//This is the upwards motion!!!

void fly()
{

}

}

It looks like
if (Input.GetButtonDown (“Fire1”).
should be
if (Input.GetButtonDown (“Fire1”))

It will still display an error until you add a command under the ‘if statement’ or you can just put {brackets} as a placeholder.

There’s also a great flappy bird tutorial on noobtuts!

https://noobtuts.com/unity/2d-flappy-bird-game

Thank you so much :slight_smile: