diff --git a/UnityProject/.vsconfig b/UnityProject/.vsconfig new file mode 100644 index 0000000..1586a48 --- /dev/null +++ b/UnityProject/.vsconfig @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Workload.ManagedGame" + ] +} diff --git a/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs b/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs index 20af507..a1f19ad 100644 --- a/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs +++ b/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs @@ -1,16 +1,11 @@ using kcp2k; using Mirror; using Mirror.SimpleWeb; -using Newtonsoft.Json; using System; -using System.Collections; using System.Collections.Generic; -using System.Linq; using System.Net; using System.Net.Sockets; using UnityEngine; -using UnityEngine.Events; -using UnityEngine.Networking; namespace LightReflectiveMirror { @@ -21,6 +16,10 @@ namespace LightReflectiveMirror public bool IsAuthenticated() => _isAuthenticated; private void Awake() { +#if !NET_4_6 + throw new Exception("LRM | Please switch to .NET 4.x for LRM to function properly!"); +#endif + if (clientToServerTransport is LightReflectiveMirrorTransport) throw new Exception("Haha real funny... Use a different transport.");