Exemplo n.º 1
0
        private static void Show(ScriptView scriptView, Vector2 nodePosition, Action <ScriptViewNode> onSuccess)
        {
            CreateNodeWindow window = GetWindow <CreateNodeWindow>();

            window._nodePosition = nodePosition;
            window._onSuccess    = onSuccess;
            window.View          = scriptView;
            window.Show();
        }
Exemplo n.º 2
0
 protected override void NodeCreationRequestEventHandler(NodeCreationContext context)
 {
     CreateNodeWindow.ShowForCreate(this, context.screenMousePosition);
 }