This commit is contained in:
高铎 2026-05-14 10:30:10 +08:00
parent 71d236b869
commit 50192d18f1
2 changed files with 12 additions and 1 deletions

View File

@ -418,7 +418,7 @@ public class SensorManager : MonoBehaviour /*MonoSingleton<SensorManager>*/
sensor.Init(this);
}
}
Debug.Log($"获取传感器 {typeof(T).Name} 成功");
//Debug.Log($"获取传感器 {typeof(T).Name} 成功");
return allSensor[name] as T;
}
catch (Exception ex)
@ -442,6 +442,7 @@ public class SensorManager : MonoBehaviour /*MonoSingleton<SensorManager>*/
SerialPort sp = serialPorts[i];
if (sp != null && !sp.IsOpen)
{
sp.RtsEnable = true;
sp.Open();
Debug.Log($"串口 {sp.PortName} 打开成功");
}

View File

@ -86507,6 +86507,16 @@ PrefabInstance:
propertyPath: jpgQuality
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5367677083586103749, guid: b2133fadb8982f34f83197fd2359c080,
type: 3}
propertyPath: _modeSelection
value: 2
objectReference: {fileID: 0}
- target: {fileID: 5367677083586103749, guid: b2133fadb8982f34f83197fd2359c080,
type: 3}
propertyPath: _desiredModeIndex
value: 45
objectReference: {fileID: 0}
- target: {fileID: 6315013461938804625, guid: b2133fadb8982f34f83197fd2359c080,
type: 3}
propertyPath: m_Name