diff --git a/Assets/Mirror/Authenticators/BasicAuthenticator.cs b/Assets/Mirror/Authenticators/BasicAuthenticator.cs index f66b7b89e..0fdc7e2e0 100644 --- a/Assets/Mirror/Authenticators/BasicAuthenticator.cs +++ b/Assets/Mirror/Authenticators/BasicAuthenticator.cs @@ -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((Action)OnAuthResponseMessage, false); + NetworkClient.RegisterHandler(OnAuthResponseMessage, false); } /// diff --git a/Assets/Mirror/Authenticators/DeviceAuthenticator.cs b/Assets/Mirror/Authenticators/DeviceAuthenticator.cs index a6fe5da8b..6723cc98d 100644 --- a/Assets/Mirror/Authenticators/DeviceAuthenticator.cs +++ b/Assets/Mirror/Authenticators/DeviceAuthenticator.cs @@ -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((Action)OnAuthResponseMessage, false); + NetworkClient.RegisterHandler(OnAuthResponseMessage, false); } ///