I have a game with two players.
First time, I can connect and play well.
but when it is over, I write a script to load the same scene again to start again two player game , and connect again.
when two device successful connect , the game crash!
and debug : Unhandled Exception: System.NullReferenceException:
how to solve it?
thanks
this error is probably a NULL variable in your code.
Prime31 plugins are quite safe to use 
but why the first time it work well?
@icepanda, I believe I already responded via email but I’ll replicate the response here in case others have the same issue. NullReferenceExceptions occur when you try to access an object that no longer exists. This can occur for hundreds of reasons but the most common in Unity are the following: you changed scenes and tried to access an object that was removed in the scene change, you nulled out a reference to an object and then tried to access it, you did not remove an event listener and the object that was listening to the event was nulled out (really the same as the first 2).