public void RemoveActiveLogic(V_IObjectActiveLogic activeLogic) { List <V_IObjectActiveLogic> tmpLogicList = new List <V_IObjectActiveLogic>(activeLogicArr); tmpLogicList.Remove(activeLogic); activeLogicArr = tmpLogicList.ToArray(); activeLogicArrCopy = tmpLogicList.ToArray(); allLogicList.Remove(activeLogic); logicDic[activeLogic.GetType()] = null; }
public void AddActiveLogic(V_IObjectActiveLogic activeLogic) { List <V_IObjectActiveLogic> tmpLogicList = new List <V_IObjectActiveLogic>(activeLogicArr); tmpLogicList.Add(activeLogic); activeLogicArr = tmpLogicList.ToArray(); activeLogicArrCopy = tmpLogicList.ToArray(); allLogicList.Add(activeLogic); logicDic[activeLogic.GetType()] = activeLogic; }