/// summary /// 返回世界BOSS、黄金部队管理类单件对象 /// summary public static TimerBossManager getInstance() { if (null == instance) { instance = new TimerBossManager(); lock (instance) { instance.LoadWorldBossInfo(); instance.LoadHuangJinBossInfo(); } } return(instance); }
public static TimerBossManager getInstance() { if (null == TimerBossManager.instance) { lock (TimerBossManager.Mutex) { if (null == TimerBossManager.instance) { TimerBossManager inst = new TimerBossManager(); inst.LoadWorldBossInfo(); inst.LoadHuangJinBossInfo(); TimerBossManager.instance = inst; } } } return(TimerBossManager.instance); }