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); }
public static void ResetBuChangItemDict() { GameManager.SystemBuChang.ReloadLoadFromXMlFile(); BuChangManager.InitBuChangDict(); }