About the wrong order of Send Candidate

Some Candidate messages are being sent before sending an Answer message and are not being used.

It seems necessary to revise this part.

On most other clients (or servers), Candidate messages OnError before an Answer message arrives.

I am of the same opinion.

In the WebRTC API (JavaScript) of the web, he operates in a single thread, so if you implement it normally, the Candidate will be sent after the Offer/Answer is sent correctly. (onicecandidate event handler function is called later)

However, for WebRTC for Unity (UnityRenderStreaming),
Candidate may be sent before Offer or Answer is sent.
I also want WebRTC for Unity to address this issue.

Since I do not use UnityRenderStreaming and implement it directly with WebRTC for Unity, I pool the Candidate that occurred before the Offer / Answer is sent, and after sending the Offer / Answer (pooled (if possible) is implemented to send a Candidate.

I think this is the same as this Issue. please check this.
https://github.com/Unity-Technologies/com.unity.webrtc/issues/347