mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
MultipleMatches example fixed
This commit is contained in:
parent
3024427933
commit
cca7afdd08
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user