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.