예제 #1
0
        public override void Do()
        {
            _input  = manager.window.state.selectedInput;
            _output = _input.Outputs[0];

            _output.Remove(_input);

            manager.window.state.selectedInput = null;
        }
예제 #2
0
        private void disconnectOldConnections()
        {
            // Remove old connections
            if (_oldConnectedOutput != null)
            {
                _oldConnectedOutput.Remove(_input);
            }

            if (_oldConnectedInputs != null)
            {
                _output.RemoveAll();
            }
        }
예제 #3
0
 public override void Redo()
 {
     _output.Remove(_input);
 }
예제 #4
0
 public override void Undo()
 {
     _output.Remove(_input);
     reconnectOldConnections();
 }