private void removeMetaContent(MetaData data) { MetaContent content = _volume.Get(data.Type); _volume.RemoveMetaContent(content); Destroy(content.Base.gameObject); reorder(); }
public MetaContent Create(MetaData data, EntryVolume volume) { MetaContent result = create(data); result.Volume = volume; volume.AddMetaContent(result); return(result); }
private void addMetaContent(MetaData data) { MetaContent content = _factory.Create(data, _volume); switch (content.MetaData.Type) { case MetaDataType.Title: content.Base.SetParent(_titleHook); break; default: content.Base.SetParent(_metaDatasHook); break; } content.Base.localScale = Vector3.one; reorder(); }