I’m getting pretty annoyed, I’ve tried various ways of doing this. I feel like its a syntax error or I’m just not going about it right.
With this method I am getting Object reference not set to an instance of an object.
var disabler;
function Start(){
disabler = GameObject.FindWithTag("SomeTag");
}
function Update()
if(some condition that is being met){
disabler.enabled = false;
}
}