private void removeEditor(Tag tag) { TagEditor editor = _editors[tag]; _editors.Remove(editor.Tag); Destroy(editor.Base.gameObject); }
private void addEditor(Tag tag) { TagEditor editor = Instantiate(_editorPrefab); editor.Tag = tag; editor.Data = Data; editor.Base.SetParent(_hook); editor.Base.localScale = Vector3.one; _editors.Add(tag, editor); }