mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Kr/issue 2039 (#2040)
* Update NetworkClient.cs * Update NetworkServer.cs * Missed a call
This commit is contained in:
parent
78bd284b6f
commit
d06ee6a21d
@ -96,7 +96,7 @@ public static void Connect(Uri uri)
|
||||
connection.SetHandlers(handlers);
|
||||
}
|
||||
|
||||
internal static void ConnectHost()
|
||||
public static void ConnectHost()
|
||||
{
|
||||
logger.Log("Client Connect Host to Server");
|
||||
|
||||
@ -120,7 +120,7 @@ internal static void ConnectHost()
|
||||
/// <summary>
|
||||
/// connect host mode
|
||||
/// </summary>
|
||||
internal static void ConnectLocalServer()
|
||||
public static void ConnectLocalServer()
|
||||
{
|
||||
NetworkServer.OnConnected(NetworkServer.localConnection);
|
||||
NetworkServer.localConnection.Send(new ConnectMessage());
|
||||
@ -130,7 +130,7 @@ internal static void ConnectLocalServer()
|
||||
/// disconnect host mode. this is needed to call DisconnectMessage for
|
||||
/// the host client too.
|
||||
/// </summary>
|
||||
internal static void DisconnectLocalServer()
|
||||
public static void DisconnectLocalServer()
|
||||
{
|
||||
// only if host connection is running
|
||||
if (NetworkServer.localConnection != null)
|
||||
@ -253,7 +253,7 @@ public static bool Send<T>(T message, int channelId = Channels.DefaultReliable)
|
||||
return false;
|
||||
}
|
||||
|
||||
internal static void Update()
|
||||
public static void Update()
|
||||
{
|
||||
// local connection?
|
||||
if (connection is ULocalConnectionToServer localConnection)
|
||||
|
@ -238,7 +238,7 @@ internal static void RemoveLocalConnection()
|
||||
RemoveConnection(0);
|
||||
}
|
||||
|
||||
internal static void ActivateHostScene()
|
||||
public static void ActivateHostScene()
|
||||
{
|
||||
foreach (NetworkIdentity identity in NetworkIdentity.spawned.Values)
|
||||
{
|
||||
@ -472,7 +472,7 @@ public static void DisconnectAllConnections()
|
||||
}
|
||||
|
||||
// The user should never need to pump the update loop manually
|
||||
internal static void Update()
|
||||
public static void Update()
|
||||
{
|
||||
if (!active)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user