Hey, I'm trying to add a multiplayer feature to my unity3d game using the lidgren networking library. When I call client.Start() in my unity3d project I get this runtime error: MissingMethodException: Method not found: 'System.Threading.Monitor.Enter'. Lidgren.Network.NetPeer.Start () (at /Users/{username}/Projects/{projectname}/Lidgren.Network/NetPeer.cs:149) ServerHandler..ctor () (at Assets/Scripts/ServerHandler.cs:23) ServerHandler.sharedInstance () (at Assets/Scripts/ServerHandler.cs:33) GameManager.Awake () (at Assets/Scripts/GameManager.cs:28) I'm working on Mac OS X Yosemite btw. Any clue?
Well it seams that the mono dll on your system doesn't have the Method 'System.Threading.Monitor.Enter'. Well here was someone with a similar problem http://answers.unity3d.com/questions/679537/lidgren-network-method-not-found-compiler-error.html .
here is my version https://www.dropbox.com/s/sqdtp24p4uqvtt3/Lidgren.Network.zip?dl=0 it should work.
That's odd, I don't remember if I encountered that when porting Lidgren to Unity. I put it in a repo when finished but it lacks the encryption classes as, for some reason, when I forked them they were missing. Feel free to use this if you still haven't found a solution https://github.com/HelloKitty/Lindgren-Unity-Port