Primary Constructor Body Error

My code is not running


See code:
The error is after float timeLeft = 30.0f;

using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class PlayerController : MonoBehaviour {
	private Rigidbody rb;
	private int count;


	public float speed;
	public Text countText;
	public Text winText;
	void Start ()
	{
		rb = GetComponent<Rigidbody>();
		count = 0;
		SetCountText ();
		winText.text = "";
	}
	void FixedUpdate ()
	{
		float moveHorizontal = Input.GetAxis ("Horizontal");
		float moveVertical = Input.GetAxis ("Vertical");

		Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);

		rb.AddForce (movement * speed); 
	}


	void OnTriggerEnter(Collider other)
	{
		if (other.gameObject.CompareTag ("Pick Up")) 
		{
			other.gameObject.SetActive (false);
			count = count + 1;
			SetCountText ();}

	}

	float timeLeft = 30.0f;
	{
		timeLeft-= Time.deltaTime;
		if (timeLeft < 0) {
			Application.Quit ();
		}
	}

	void SetCountText ()
	{
		countText.text = "Count: " + count.ToString ();
		if (count>=3)
		{
			winText.text = "LOOK OUT!";
		}
	}
}

You closed your code block for OnTriggerEnter method on line 42(the opening curly), this needs to be removed like so, line 37 had an extra ending curly brace(or 39, whichever):

 using UnityEngine;
 using UnityEngine.UI;
 using System.Collections;
 
 public class PlayerController : MonoBehaviour {
     private Rigidbody rb;
     private int count;

 public float speed;
 public Text countText;
 public Text winText;
 void Start ()
 {
     rb = GetComponent<Rigidbody>();
     count = 0;
     SetCountText ();
     winText.text = "";
 }

 void FixedUpdate ()
 {
     float moveHorizontal = Input.GetAxis ("Horizontal");
     float moveVertical = Input.GetAxis ("Vertical");

     Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);

     rb.AddForce (movement * speed); 
 }

 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag ("Pick Up")) 
     {
         other.gameObject.SetActive (false);
         count = count + 1;
         SetCountText ();
     }

     float timeLeft = 30.0f;
 
     timeLeft-= Time.deltaTime;
     if (timeLeft < 0) {
         Application.Quit ();
     }
 }

 void SetCountText ()
 {
     countText.text = "Count: " + count.ToString ();
     if (count>=3)
     {
         winText.text = "LOOK OUT!";
     }
 }
 }