Exemplo n.º 1
0
 public void RoutePacket(MeshPacket p)
 {
     //Debug.Log("Routing packet through objectID = " + GetObjectID() + ", destinationObject = " + p.GetTargetObjectId());
     if (meshnetReference == null)
     {
         Debug.LogError("Identity trying to route packet without meshnet reference");
         return;
     }
     if (p.GetSourceObjectId() != GetObjectID())
     {
         Debug.LogError("Wrong MNI used to route packet: srcID = " + p.GetSourceObjectId() + ", thisID = " + GetObjectID());
         return;
     }
     meshnetReference.RoutePacket(p);
 }