예제 #1
0
 public void Set(EntryVolume content)
 {
     Volume = content;
     Volume.Base.SetParent(_contentHook, false);
     Volume.Base.localPosition = Vector3.one;
     OnVolumeSet?.Invoke();
 }
예제 #2
0
        public MetaContent Create(MetaData data, EntryVolume volume)
        {
            MetaContent result = create(data);

            result.Volume = volume;
            volume.AddMetaContent(result);
            return(result);
        }
예제 #3
0
        public EntryVolume Create(EntryVolume volumeToCopy)
        {
            EntryVolume result = Instantiate(_volumePrefab);

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