mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Inlined an internal method call. (#716)
This commit is contained in:
parent
e9717d87ad
commit
df132b6893
@ -43,11 +43,6 @@ public class NetworkClient
|
||||
// to avoid race conditions. keep packets in Queue until LateUpdate.
|
||||
internal static Queue<byte[]> localClientPacketQueue = new Queue<byte[]>();
|
||||
|
||||
internal static void SetHandlers(NetworkConnection conn)
|
||||
{
|
||||
conn.SetHandlers(handlers);
|
||||
}
|
||||
|
||||
// connect remote
|
||||
public static void Connect(string address)
|
||||
{
|
||||
@ -77,7 +72,7 @@ internal static void ConnectLocalServer()
|
||||
|
||||
// create local connection to server
|
||||
connection = new ULocalConnectionToServer();
|
||||
SetHandlers(connection);
|
||||
connection.SetHandlers(handlers);
|
||||
|
||||
// create server connection to local client
|
||||
ULocalConnectionToClient connectionToClient = new ULocalConnectionToClient();
|
||||
|
Loading…
Reference in New Issue
Block a user