//request ownership
 public void RequestOwnership(string uniqueId)
 {
     OwnershipData data = new OwnershipData();
     data.uniqueId = uniqueId;
     data.owner = Net.myId;
     socket.Emit("requestOwnership", JsonUtility.ToJson(data));
 }
 public void OnChangeOwner(SocketIOEvent e)
 {
     OwnershipData data = JsonUtility.FromJson<OwnershipData>(e.data.ToString());
     
     if (Net.objects.ContainsKey(data.uniqueId))
     {
         Net.objects[data.uniqueId].owner = data.owner;
     }
     else
     {
         print("Warning OnChangeOwner: I can't find a netobject named " + data.uniqueId);
     }
 }