public void unRegister(string name) { if (!_mapLogic.ContainsKey(name)) { Debug.LogWarning("LogicMgr register Name is Not Exist! " + name); return; } LogicBase logic = _mapLogic[name]; logic.onUnInit(); _mapLogic.Remove(name); }