public void SetReply(string strReply) { //deserialize reply WebRTCWrapper.FullReply frpReply = null; try { frpReply = JsonUtility.FromJson <WebRTCWrapper.FullReply>(strReply); } catch { Debug.LogError($"Error Deserializing offer string {strReply}"); } if (frpReply == null) { Debug.LogError("reply deserialized to null"); return; } m_rtwRTCWrapper.ProcessFullReply(frpReply); }
public string GetReply() { WebRTCWrapper.FullReply frpReply = m_rtwRTCWrapper.GetFullReply(); return(JsonUtility.ToJson(frpReply)); }