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;
	}
Beispiel #2
0
 public void UpdatePlayer(GameObject recipient)
 {
     PaperUpdateMessage.Send(recipient, gameObject, ServerString);
 }