private static void SelectToState(object userdata) { string toState = userdata as string; EditorCommands.SetTransitionTarget(ToolWindow.editingTransition, toState); SkillEditor.RepaintAll(); }