Ejemplo n.º 1
0
    ///     Sends the death message
    public static PlayerDeathMessage Send(GameObject recipient)
    {
        PlayerDeathMessage msg = new PlayerDeathMessage();

        msg.SendTo(recipient);
        return(msg);
    }
Ejemplo n.º 2
0
    /// <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);
    }