static var flag:boolean = false; 在text2.js中接受静态变量: if(text1.flag) { //语句 } unity3d视频教程 转载于:https://blog.51cto.com/unity3d168/1185923