Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Basic/Invaders/Assets/Scripts/InvadersGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public void SetGameEnd(GameOverReason reason)
[ClientRpc]
public void BroadcastGameOverClientRpc(GameOverReason reason)
{
var localPlayerObject = NetworkManager.Singleton.ConnectedClients[NetworkManager.Singleton.LocalClientId].PlayerObject;
var localPlayerObject = NetworkManager.Singleton.LocalClient.PlayerObject;
Assert.IsNotNull(localPlayerObject);

if (localPlayerObject.TryGetComponent<PlayerControl>(out var playerControl))
Expand Down