Basic Networking done
This commit is contained in:
16
Assets/Mirror/Editor/Weaver/Helpers.cs
Normal file
16
Assets/Mirror/Editor/Weaver/Helpers.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Mirror.Weaver
|
||||
{
|
||||
static class Helpers
|
||||
{
|
||||
// This code is taken from SerializationWeaver
|
||||
|
||||
public static string UnityEngineDllDirectoryName()
|
||||
{
|
||||
string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);
|
||||
return directoryName?.Replace(@"file:\", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user