public static PaperUpdateMessage Send(GameObject recipient, GameObject paperToUpdate, string message) { PaperUpdateMessage msg = new PaperUpdateMessage { Recipient = recipient.GetComponent<NetworkIdentity>().netId, PaperToUpdate = paperToUpdate.GetComponent<NetworkIdentity>().netId, Message = message }; msg.SendTo(recipient); return msg; }
public void UpdatePlayer(GameObject recipient) { PaperUpdateMessage.Send(recipient, gameObject, ServerString); }