Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在A场景设置全局变量为1,切换到B场景被重置为0了要怎么办
全局变量默认是场景切换不会重置的,你这个情况要么是写了设置变量的事件,要么是错把文本的显示当成全局变量的实际值了