defines
This commit is contained in:
parent
cc84f21812
commit
9a539f1aab
2 changed files with 10 additions and 5 deletions
6
UnityProject/.vsconfig
Normal file
6
UnityProject/.vsconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"version": "1.0",
|
||||||
|
"components": [
|
||||||
|
"Microsoft.VisualStudio.Workload.ManagedGame"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,16 +1,11 @@
|
||||||
using kcp2k;
|
using kcp2k;
|
||||||
using Mirror;
|
using Mirror;
|
||||||
using Mirror.SimpleWeb;
|
using Mirror.SimpleWeb;
|
||||||
using Newtonsoft.Json;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Events;
|
|
||||||
using UnityEngine.Networking;
|
|
||||||
|
|
||||||
namespace LightReflectiveMirror
|
namespace LightReflectiveMirror
|
||||||
{
|
{
|
||||||
|
|
@ -21,6 +16,10 @@ namespace LightReflectiveMirror
|
||||||
public bool IsAuthenticated() => _isAuthenticated;
|
public bool IsAuthenticated() => _isAuthenticated;
|
||||||
private void Awake()
|
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)
|
if (clientToServerTransport is LightReflectiveMirrorTransport)
|
||||||
throw new Exception("Haha real funny... Use a different transport.");
|
throw new Exception("Haha real funny... Use a different transport.");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue