例子 比如我们想在当前脚本获得某个叫initial脚本内部定义的叫imgList的变量,可以这么写: var imgList = FindObjectOfType<initial>().imgList;