Пример #1
0
 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);
             }
         }
     }
 }
Пример #2
0
 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);
             }
         }
     }
 }