Esempio n. 1
0
 public void Construct(MainFlowCoordinator mainFlow, NoteListViewController noteListView, NoteDetailsViewController noteDetailsView, NotePreviewViewController notePreviewView)
 {
     _mainFlow        = mainFlow;
     _noteListView    = noteListView;
     _noteDetailsView = noteDetailsView;
     _notePreviewView = notePreviewView;
 }
        public void Awake()
        {
            if (!notePreviewView)
            {
                notePreviewView = BeatSaberUI.CreateViewController <NotePreviewViewController>();
            }

            if (!noteDetailsView)
            {
                noteDetailsView = BeatSaberUI.CreateViewController <NoteDetailsViewController>();
            }

            if (!noteListView)
            {
                noteListView = BeatSaberUI.CreateViewController <NoteListViewController>();
                noteListView.customNoteChanged += noteDetailsView.OnNoteWasChanged;
                noteListView.customNoteChanged += notePreviewView.OnNoteWasChanged;
            }
        }