MultipleMatches example fixed

This commit is contained in:
MrGadget 2022-03-23 07:19:19 -04:00
parent 3024427933
commit cca7afdd08

View File

@ -31,7 +31,7 @@ public class CanvasController : MonoBehaviour
/// <summary>
/// Player informations by Network Connection
/// </summary>
internal static readonly Dictionary<NetworkConnectionToClient, PlayerInfo> playerInfos = new Dictionary<NetworkConnectionToClient, PlayerInfo>();
internal static readonly Dictionary<NetworkConnection, PlayerInfo> playerInfos = new Dictionary<NetworkConnection, PlayerInfo>();
/// <summary>
/// Network Connections that have neither started nor joined a match yet
@ -319,7 +319,7 @@ internal void OnStopServer()
internal void OnClientConnect()
{
playerInfos.Add((NetworkConnectionToClient)NetworkClient.connection, new PlayerInfo { playerIndex = this.playerIndex, ready = false });
playerInfos.Add(NetworkClient.connection, new PlayerInfo { playerIndex = this.playerIndex, ready = false });
}
internal void OnStartClient()