public void Set(EntryVolume content) { Volume = content; Volume.Base.SetParent(_contentHook, false); Volume.Base.localPosition = Vector3.one; OnVolumeSet?.Invoke(); }
public MetaContent Create(MetaData data, EntryVolume volume) { MetaContent result = create(data); result.Volume = volume; volume.AddMetaContent(result); return(result); }
public EntryVolume Create(EntryVolume volumeToCopy) { EntryVolume result = Instantiate(_volumePrefab); result.Data = volumeToCopy.Data; result.Expanded = volumeToCopy.Expanded; return(result); }
protected virtual void Start() { if (_volume == null) { _volume = GetComponentInParent <EntryVolume>(); } updateView(); _volume.OnExpanded += updateView; }