public void EnableScripts(bool b) { //accepts a boolean to enable all the scripts maybe? // playerMovement.enabled = b; // turn off the movement script once we hit an object -> cube stops moving if (b) { followPlayer.FindPlayer(); textScoreCounter.FindPlayer(); buttonMoveRight.FindPlayer(); buttonMoveLeft.FindPlayer(); } followPlayer.enabled = b; obstacleSpawner.enabled = b; textScoreCounter.enabled = b; buttonMoveRight.enabled = b; buttonMoveLeft.enabled = b; }