public bool Add(ConfigSheetLine line) { #if UNITY_EDITOR if (_dicId != null && _dicId.ContainsKey(line.GetId())) { return(false); } if (_dicName != null && _dicName.ContainsKey(line.GetKey())) { return(false); } #endif if (_dicId != null) { _dicId[line.GetId()] = line; } else { _dicName[line.GetKey()] = line; } return(true); }