Exemplo n.º 1
0
        /// <summary>
        /// Sends the new string to the gameobject
        /// </summary>
        public static NoteUpdateMessage Send(GameObject recipient, GameObject noteToUpdate, string message)
        {
            NoteUpdateMessage msg = new NoteUpdateMessage
            {
                Recipient   = recipient.GetComponent <NetworkIdentity>().netId,
                PDAToUpdate = noteToUpdate.GetComponent <NetworkIdentity>().netId,
                Message     = message
            };

            msg.SendTo(recipient);
            return(msg);
        }
 public void UpdatePlayer(GameObject recipient)
 {
     NoteUpdateMessage.Send(recipient, gameObject, serverString);
 }