BCE0019: 'cont' is not a memBCE0019: 'cont' is not a member of 'UnityEngine.Component'. ber of 'UnityEngine.Component'.

hi guys… I have a problem whit this exception at this line:

var trigger=GameObject.Find(“Macchina”);
var continua=trigger.GetComponent(“GestioneTrigger”).cont;

I have previously created the script “GestioneTrigger”, and inside there is only a boolean variable. My goal is to take the boolean variable from another script but I have this exception.

Try like this:

var trigger=GameObject.Find("Macchina"); 
var continua:GestioneTrigger =trigger.GetComponent(GestioneTrigger);

continua.cont;