I have a boolean that controls wether or not the blocks scale up and down and the lights change colour. but it only works if I’m in my game scene and I set it to true in the inspector. However if I load into the scene and set the boolean through code, like I need to, it doesn’t make the blocks scale up and down but it does change the light colour.
if (isDubstepMode == true) {
AnalyzeSound(); // This function works and happens
UpdateVisualAudio(); // This function doesn't
UpdateLight(); // This function does
}