liwenhua renderType设置成instance,单例模式怎么使用的啊,我直接new 两个UI类 然后使用 == 判断是否相等,但是打印出来为fase,这个renderType,怎么设置使用的啊,求指教
Aar0n public function GameUI():void { super(); GameUI.instance = this; }设置单例之后,runtime脚本里面就 指定一下,就ok了,免去写单例代码。