static void Init() { // Get existing open window or if none, make a new one: EventGraphWindow window = (EventGraphWindow)EditorWindow.GetWindow(typeof(EventGraphWindow)); window.Show(); }
public EventGraphWindowItem(INodedEvent myEvent, Action <EventGraphWindowItem> removeRequest, EventGraphWindow window) { this.myEvent = myEvent; if (myEvent == null) { throw new Exception("my event == null"); } this.removeRequest = removeRequest; this.parentWindow = window; BuildEntryTypes(); BuildNamedMoments(); }