/// 注意单例类的构造函数必须是private的,这样才能确保类只有一个对象,不让外部类实例化该类
 private GameMainProgram()
 {
     // 构造
     resourcesMgr = new ResourcesMgr(this);
     fileMgr      = new FileMgr(this);
     dataBaseMgr  = new DataBaseMgr(this);
     gameDataMgr  = new GameDataMgr(this);
     languageMgr  = new LanguageMgr(this);
     playerMgr    = new PlayerMgr(this);
     enemyMgr     = new EnemyMgr(this);
     uiManager    = new UIManager(this);
     uiMaskMgr    = new UIMaskMgr(this);
     eventMgr     = new EventMgr(this);
     courseMgr    = new CourseMgr(this);
 }
示例#2
0
 /// 注意单例类的构造函数必须是private的,这样才能确保类只有一个对象,不让外部类实例化该类
 private GameMainProgram()
 {
     // 构造
     resourcesMgr = new ResourcesMgr(this);
     fileMgr      = new FileMgr(this);
     dataBaseMgr  = new DataBaseMgr(this);
     gameDataMgr  = new GameDataMgr(this);
     languageMgr  = new LanguageMgr(this);
     playerMgr    = new PlayerMgr(this);
     enemyMgr     = new EnemyMgr(this);
     npcMgr       = new NpcMgr(this);
     uiManager    = new UIManager(this);
     uiMaskMgr    = new UIMaskMgr(this);
     eventMgr     = new EventMgr(this);
     courseMgr    = new CourseMgr(this);
     audioMgr     = new AudioMgr(this);
     dialogMgr    = new DialogMgr(this);
     sqlMgr       = new SqlMgr(this);
     threadMgr    = new ThreadMgr(this);
 }