public void ProcessMessage(ReferenceCountedSceneGraphMessage message) { var logmessage = new LogManagerMessage(message); switch (logmessage.Header[0]) { case 0x2: { switch (logmessage.ToString()) { case "StartTransmitting": StartTransmitting(); break; case "StopTransmitting": StopTransmitting(); break; } } break; default: Debug.LogException(new NotSupportedException($"Uknown LogManager message type {logmessage.Header[0]}")); break; } ; }
public void ProcessMessage(ReferenceCountedSceneGraphMessage message) { var logmessage = new LogManagerMessage(message); switch (logmessage.Header[0]) { case 0x1: { Push(logmessage.Bytes, logmessage.Header[1]); } break; case 0x2: { switch (logmessage.ToString()) { default: Debug.LogException(new NotSupportedException($"Uknown LogManager message {logmessage.ToString()}")); break; } } break; default: Debug.LogException(new NotSupportedException($"Uknown LogManager message type {logmessage.Header[0]}")); break; } }