I made a setting button but when clicked it does nothing, the text is supposed to change and it is supposed to activate mobile controls but it does nothing.
You did it so when you click button it 1st set to true then to false Instead you need to toggle variable