/// <summary> /// Close all window related to adding/configuring sensor, also called in SimUI /// </summary> public void EndProcesses() { isChoosingOption = false; if (currentSensor != null) { currentSensor.ResetConfigurationState(); currentSensor = null; } sensorOptionPanel.SetActive(false); sensorTypePanel.SetActive(false); CancelOptionSelection(); CancelTypeSelection(); ResetConfigurationWindow(); //HideSensorOutput(); selectedNode = null; //Switch back to the original camera state if (preConfigState != null) { dynamicCamera.SwitchToState(preConfigState); preConfigState = null; } HideInvisibleSensors(); }
/// <summary> /// Close all window related to adding/configuring sensor, also called in SimUI /// </summary> public void EndProcesses() { isChoosingOption = false; if (currentSensor != null) { currentSensor.ResetConfigurationState(); currentSensor = null; } sensorOptionPanel.SetActive(false); sensorTypePanel.SetActive(false); CancelOptionSelection(); CancelTypeSelection(); ResetConfigurationWindow(); HideSensorOutput(); //configureSensorButton.GetComponentInChildren<Text>().text = "Add/Configure Sensor"; selectedNode = null; if (preConfigState != null) { dynamicCamera.SwitchToState(preConfigState); preConfigState = null; } HideInvisibleSensors(); }
/// <summary> /// Close all window related to adding/configuring sensor /// </summary> public void EndProcesses() { isChoosingOption = isSelectingSensor = isAddingSensor = isAddingBeamBreaker = isAddingUltrasonic = nodeConfirmed = false; sensorOptionPanel.SetActive(false); ResetConfigurationWindow(); sensorTypePanel.SetActive(false); selectedNode = null; CancelOptionSelection(); configureSensorButton.GetComponentInChildren <Text>().text = "Add/Configure Sensor"; if (currentSensor != null) { currentSensor.ResetConfigurationState(); currentSensor = null; } if (preConfigState != null) { dynamicCamera.SwitchToState(preConfigState); preConfigState = null; } }