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); }
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); }