private void OnLocationNotify(string msg) { if (msg.get_Length() > 0) { ApolloStringParser apolloStringParser = new ApolloStringParser(msg); ApolloRelation @object = apolloStringParser.GetObject <ApolloRelation>("Relation"); if (this.onLocationEvent != null) { try { this.onLocationEvent(@object); } catch (Exception ex) { ADebug.Log("onLocationEvent:" + ex); } } } }
private void OnLocationNotify(string msg) { if (msg.Length > 0) { ApolloStringParser parser = new ApolloStringParser(msg); ApolloRelation aRelation = null; aRelation = parser.GetObject <ApolloRelation>("Relation"); if (this.onLocationEvent != null) { try { this.onLocationEvent(aRelation); } catch (Exception exception) { ADebug.Log("onLocationEvent:" + exception); } } } }