public override void OnBodyGUI() { base.OnBodyGUI(); DialogueNode node = (DialogueNode)target; DialogueGraph graph = (DialogueGraph)node.graph; if (GUILayout.Button("Set as entry point")) { graph.SetEntryPoint(node); } }