private void Watching(AEIMessage message) { switch (message.type) { case AEIMessage.Type.Sensor: WatchingSensorMessage((SensorMessage)message); break; case AEIMessage.Type.JTag: WatchingJTagMessage((JTagMessage)message); break; } }
private void Passing(AEIMessage message) { switch (message.type) { case AEIMessage.Type.Sensor: PassingSensorMessage((SensorMessage)message); break; case AEIMessage.Type.KTag: PassingKTagMessage((KTagMessage)message); break; } }
public void OnSensorDataReceived(AEIMessage sensorData) { switch (state) { case State.Watching: Watching(sensorData); break; case State.Passing: Passing(sensorData); break; } }