/// Sends the death message public static PlayerDeathMessage Send(GameObject recipient) { PlayerDeathMessage msg = new PlayerDeathMessage(); msg.SendTo(recipient); return(msg); }
/// <summary> /// Sends the death message /// </summary> public static PlayerDeathMessage Send(GameObject recipient) { PlayerDeathMessage msg = new PlayerDeathMessage { Recipient = recipient.GetComponent <NetworkIdentity>().netId }; msg.SendTo(recipient); return(msg); }