Updated Authenticators

This commit is contained in:
MrGadget 2022-02-26 14:52:54 -05:00
parent 66eff281c7
commit 3a1d9822bd
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ IEnumerator DelayedDisconnect(NetworkConnectionToClient conn, float waitTime)
public override void OnStartClient()
{
// register a handler for the authentication response we expect from server
NetworkClient.RegisterHandler<AuthResponseMessage>((Action<AuthResponseMessage>)OnAuthResponseMessage, false);
NetworkClient.RegisterHandler<AuthResponseMessage>(OnAuthResponseMessage, false);
}
/// <summary>

View File

@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
namespace Mirror.Authenticators
@ -80,7 +80,7 @@ void OnAuthRequestMessage(NetworkConnectionToClient conn, AuthRequestMessage msg
public override void OnStartClient()
{
// register a handler for the authentication response we expect from server
NetworkClient.RegisterHandler<AuthResponseMessage>((Action<AuthResponseMessage>)OnAuthResponseMessage, false);
NetworkClient.RegisterHandler<AuthResponseMessage>(OnAuthResponseMessage, false);
}
/// <summary>