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

            return(instance);
        }
예제 #2
0
 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);
 }