This change replaces UnitySocketFix with PausedSocketFix, a thread safe and less complicated version.
UnitySocketFix would break when LiteNetLib was run on a thread since it's initialization involved creating a gameObject and adding a component.
PausedSocketFix uses thread safe events and a non-monobehaviour class.
PausedSocketFix also brings enhancements to not drop the connection when the application loses focus, but rather only try to reconnect on focus gain if connection was lost.
This change replaces UnitySocketFix with PausedSocketFix, a thread safe and less complicated version.
UnitySocketFix would break when LiteNetLib was run on a thread since it's initialization involved creating a gameObject and adding a component.
PausedSocketFix uses thread safe events and a non-monobehaviour class. PausedSocketFix also brings enhancements to not drop the connection when the application loses focus, but rather only try to reconnect on focus gain if connection was lost.