示例#1
0
        public static BuChangItem GetBuChangItem(int unionLevel)
        {
            BuChangItem buChangItem = null;

            lock (BuChangManager._BuChangItemDict)
            {
                if (BuChangManager._BuChangItemDict.TryGetValue(unionLevel, out buChangItem))
                {
                    return(buChangItem);
                }
            }
            BuChangManager.InitBuChangDict();
            lock (BuChangManager._BuChangItemDict)
            {
                if (BuChangManager._BuChangItemDict.TryGetValue(unionLevel, out buChangItem))
                {
                    return(buChangItem);
                }
            }
            return(buChangItem);
        }
示例#2
0
 public static void ResetBuChangItemDict()
 {
     GameManager.SystemBuChang.ReloadLoadFromXMlFile();
     BuChangManager.InitBuChangDict();
 }