/// <summary> /// Send a debug message that will show up in Debug.Log to the server. /// </summary> /// <param name="s">Message to send</param> public void SendDebugMessage(string s) { byte[] data = MessageBuilder.BuildDebugMessage(s); client.Send(data); }
/// <summary> /// Send a debug message that will show up in Debug.Log to a client. /// </summary> /// <param name="s">Message to send</param> /// <param name="connectionId">Connection id of the client</param> public void SendDebugMessage(string s, int connectionId) { byte[] data = MessageBuilder.BuildDebugMessage(s); server.SendToClient(connectionId, data); }