public override void Do() { _input = manager.window.state.selectedInput; _output = _input.Outputs[0]; _output.Remove(_input); manager.window.state.selectedInput = null; }
private void disconnectOldConnections() { // Remove old connections if (_oldConnectedOutput != null) { _oldConnectedOutput.Remove(_input); } if (_oldConnectedInputs != null) { _output.RemoveAll(); } }
public override void Redo() { _output.Remove(_input); }
public override void Undo() { _output.Remove(_input); reconnectOldConnections(); }