void AddPort(string portName) { ComPort comPort = comPorts.GetPort(portName); if (comPort != null && !m_scope.ContainsVariable(portName)) { Debug.Log(portName + " added to scope"); m_scope.SetVariable(portName, comPort); } }