コード例 #1
0
        private void OnEnable()
        {
            guiFactory = new DialogueEditorFactory(this);

            Selection.selectionChanged += () => {
                if (Selection.activeObject is DialogueSO dialogue)
                {
                    selectedDialogue = dialogue;
                    Repaint();
                }
            };
        }
コード例 #2
0
        public DialogueNodeAreaComponent(
            DialogueEditor editor,
            DialogueEditorFactory guiFactory,
            DialogueEditorStyles styles,
            DialogueRepository repository
            )
        {
            this.editor     = editor;
            this.guiFactory = guiFactory;
            this.styles     = styles;
            this.repository = repository;

            if (backgroundTex == null)
            {
                backgroundTex = Resources.Load <Texture2D>("background");
            }
        }