Exemplo n.º 1
0
    public static InfoWindowMessage Send(GameObject recipient, string text, string title = "", bool bwoink = true)
    {
        InfoWindowMessage msg =
            new InfoWindowMessage {
            Recipient = recipient.GetComponent <NetworkIdentity>().netId,
            Text      = text,
            Title     = title,
            Bwoink    = bwoink
        };

        msg.SendTo(recipient);
        return(msg);
    }
Exemplo n.º 2
0
    public static InfoWindowMessage Send(GameObject recipient, string text, string title, Color color)
    {
        InfoWindowMessage msg =
            new InfoWindowMessage {
            Recipient = recipient.GetComponent <NetworkIdentity>().netId,
            Text      = text,
            Title     = title,
            Color     = color
        };

        msg.SendTo(recipient);
        return(msg);
    }