1.单例实现
XXXX.s_SharedUIManager = null;
XXXX.getInstance = function () {
if (!this.s_SharedUIManager) {
this.s_SharedUIManager = new UIManager();
this.s_SharedUIManager.init();
}
return this.s_SharedUIManager;
};
1.单例实现
XXXX.s_SharedUIManager = null;
XXXX.getInstance = function () {
if (!this.s_SharedUIManager) {
this.s_SharedUIManager = new UIManager();
this.s_SharedUIManager.init();
}
return this.s_SharedUIManager;
};