Esempio n. 1
0
    void FixedUpdate()
    {
        if (graphGenerator.interactionReady)
        {
            CheckDebugKeyboardActions();

            UpdateControlPanel();

            if (stateL == STATE_DRAGGING)   // maybe do this if the user stops moving the node around, don't do it if the node is moving a lot
            {
                graphGenerator.explodeSelectedNode(highlightedObjectL);
            }

            if (stateR == STATE_DRAGGING)
            {
                graphGenerator.explodeSelectedNode(highlightedObjectR);
            }
        }
    }
Esempio n. 2
0
    void Update()
    {
        if (graphGenerator.interactionReady)
        {
            CheckDebugKeyboardActions();

            UpdateControlPanel();

            if (controllerStateL.state == ControllerState.STATE_DRAGGING)
            { // maybe do this if the user stops moving the node around, don't do it if the node is moving a lot
                graphGenerator.explodeSelectedNode(controllerStateL.highlightedObject);
            }

            if (controllerStateR.state == ControllerState.STATE_DRAGGING)
            {
                graphGenerator.explodeSelectedNode(controllerStateR.highlightedObject);
            }
        }
    }