/// <summary> /// Change for the next the wave length value. /// </summary> public void NextWaveLength() { if (waveMode == WaveLengthTypes.Li) { waveMode = WaveLengthTypes.Na; } else { waveMode++; } switch (waveMode) { case WaveLengthTypes.Na: waveLengthDisplay.text = "Na"; break; case WaveLengthTypes.K: waveLengthDisplay.text = "K"; break; case WaveLengthTypes.Li: waveLengthDisplay.text = "Li"; break; } }
public WaveLengthTypes waveMode; // Actual wave length being measured void Start() { timeElapsed = 0; waveMode = WaveLengthTypes.Na; }