public DialogueEditorContextMenu( DialogueEditor editor, DialogueRepository dialogueRepository, DialogueCsvHandler dialogueCsvHandler ) { this.editor = editor; this.dialogueRepository = dialogueRepository; this.dialogueCsvHandler = dialogueCsvHandler; }
private void InitializeEditor() { titleContent = new GUIContent($"{windowBaseName} - {selectedDialogue.name}"); dialogueRepository = new DialogueRepository(selectedDialogue); dialogueCsvHandler = new DialogueCsvHandler(selectedDialogue); contextMenu = new DialogueEditorContextMenu( this, dialogueRepository, dialogueCsvHandler ); styles = new DialogueEditorStyles(selectedDialogue); }