'UnityEngine.Component' does not contain a definition for 'enabled' and no extension method 'enabled' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)

I can’t figure it out. What it wrong with it? The error is at InvisWallBackComp.enabled = false;

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

public class Finish : MonoBehaviour {
public GameObject InvisWall;
public GameObject InvisWallBack;
public Text WinText;
public int laps;
public GameObject Player;
public Component InvisWallBackComp;
public Component InvisWallComp;
void start() {
InvisWall = GameObject.Find (“InvisibleWall”);
InvisWallBack = GameObject.Find (“InvisibleWallBack”);
InvisWallBackComp = InvisWallBack.GetComponent ();
InvisWallComp = InvisWall.GetComponent ();

	laps = -1;
	NumberOfLaps ();

void Update () {
	InvisWallBackComp.enabled = false; 

void OnTriggerEnter2D(Collider2D other) {

	laps = laps + 1;
	NumberOfLaps ();

void NumberOfLaps () {
	WinText.text = "Lap: " + laps.ToString ();


A Component doesn’t have an enabled property. Try using a Behaviour instead, it inherits from Component and adds the enabled property.

void Update ()

You can’t access the enabled property directly, you have to use gameObject.SetActive(bool);