Im a newcomer to coding and im trying to use a variable to turn of a mesh renderer… but when i test the Scene the object starts invisible when it should be hidden after a variable is changed. the object re-appears when i remove one line. see below and any help would salvage my sanity??
var RenderMesh:boolean = true;
function Start ()
function Update ()
if (CrateStop.GlobalboxSwitch2 == true);
//myMeshRenderer.enabled = false;