Skip to content

Commit

Permalink
fix: Room example to use new override
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Langsenkamp committed Feb 23, 2020
1 parent ce25eb5 commit e1d1d41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class NetworkRoomManagerExt : NetworkRoomManager
/// <param name="roomPlayer"></param>
/// <param name="gamePlayer"></param>
/// <returns>true unless some code in here decides it needs to abort the replacement</returns>
public override bool OnRoomServerSceneLoadedForPlayer(GameObject roomPlayer, GameObject gamePlayer)
public override bool OnRoomServerSceneLoadedForPlayer(NetworkConnection conn, GameObject roomPlayer, GameObject gamePlayer)
{
PlayerScore playerScore = gamePlayer.GetComponent<PlayerScore>();
playerScore.index = roomPlayer.GetComponent<NetworkRoomPlayer>().index;
Expand Down

0 comments on commit e1d1d41

Please sign in to comment.