public void Remove(string key) { for(int i = 0; i < keys.Count; i++){ if(keys[i].Equals(key)){ subSections.RemoveAt(i); keys.RemoveAt(i); vals.RemoveAt(i); comments.RemoveAt(i); return; } } Debug.LogError("Key not found"); }