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);
        }
Exemple #3
0
        public EntryVolume Create(EntryVolume volumeToCopy)
        {
            EntryVolume result = Instantiate(_volumePrefab);

            result.Data     = volumeToCopy.Data;
            result.Expanded = volumeToCopy.Expanded;
            return(result);
        }
Exemple #4
0
 protected virtual void Start()
 {
     if (_volume == null)
     {
         _volume = GetComponentInParent <EntryVolume>();
     }
     updateView();
     _volume.OnExpanded += updateView;
 }